Package com.cosylab.epics.caj.impl
Class CAJNameClient
- java.lang.Object
-
- com.cosylab.epics.caj.impl.CAJNameClient
-
- All Implemented Interfaces:
Request,TransportClient,Timer.TimerRunnable
public class CAJNameClient extends Object implements TransportClient, Timer.TimerRunnable, Request
-
-
Field Summary
Fields Modifier and Type Field Description ByteBuffersendBuffer-
Fields inherited from interface com.cosylab.epics.caj.impl.Request
DEFAULT_USER_PRIORITY, MAX_USER_PRIORITY, MIN_USER_PRIORITY, SEND_IMMEDIATELY_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description CAJNameClient(CAJContext ctxt, InetSocketAddress ep)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel()voidconnect()bytegetPriority()Get request priority, higher view higher priority.ByteBuffergetRequestMessage()Get request message to be sent.voidinitBuffer()voidsubmit()Submit this request message to the corresponding transport.voidtimeout(long timeToRun)Method invoked by timer at requested time.voidtransportChanged()Notification of network change (server restarted).voidtransportClosed()Notification of forcefully closed transport.voidtransportResponsive(Transport transport)Notification of responsive transport (e.g.voidtransportUnresponsive()Notification of unresponsive transport (e.g.
-
-
-
Field Detail
-
sendBuffer
public final ByteBuffer sendBuffer
-
-
Constructor Detail
-
CAJNameClient
public CAJNameClient(CAJContext ctxt, InetSocketAddress ep)
-
-
Method Detail
-
initBuffer
public void initBuffer()
-
connect
public void connect()
-
cancel
public void cancel()
-
timeout
public void timeout(long timeToRun)
Description copied from interface:Timer.TimerRunnableMethod invoked by timer at requested time.- Specified by:
timeoutin interfaceTimer.TimerRunnable- Parameters:
timeToRun- time in ms to run.
-
transportUnresponsive
public void transportUnresponsive()
Description copied from interface:TransportClientNotification of unresponsive transport (e.g. no heartbeat detected) .- Specified by:
transportUnresponsivein interfaceTransportClient
-
transportResponsive
public void transportResponsive(Transport transport)
Description copied from interface:TransportClientNotification of responsive transport (e.g. heartbeat detected again), called to discardtransportUnresponsivenotification.- Specified by:
transportResponsivein interfaceTransportClient- Parameters:
transport- responsive transport.
-
transportChanged
public void transportChanged()
Description copied from interface:TransportClientNotification of network change (server restarted).- Specified by:
transportChangedin interfaceTransportClient
-
transportClosed
public void transportClosed()
Description copied from interface:TransportClientNotification of forcefully closed transport.- Specified by:
transportClosedin interfaceTransportClient
-
getPriority
public byte getPriority()
Description copied from interface:RequestGet request priority, higher view higher priority.- Specified by:
getPriorityin interfaceRequest- Returns:
- request priority.
-
getRequestMessage
public ByteBuffer getRequestMessage()
Description copied from interface:RequestGet request message to be sent.- Specified by:
getRequestMessagein interfaceRequest- Returns:
- request message to be sent.
-
submit
public void submit() throws IOExceptionDescription copied from interface:RequestSubmit this request message to the corresponding transport.- Specified by:
submitin interfaceRequest- Throws:
IOException
-
-