public abstract class AbstractInactivityMonitor extends TransportFilter
| Modifier and Type | Field and Description |
|---|---|
protected WireFormat |
wireFormat |
next, transportListener| Constructor and Description |
|---|
AbstractInactivityMonitor(Transport next,
WireFormat wireFormat) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
configuredOk() |
long |
getInitialDelayTime() |
long |
getReadCheckTime() |
long |
getWriteCheckTime() |
boolean |
isKeepAliveResponseRequired() |
boolean |
isMonitorStarted() |
void |
onCommand(Object command)
called to process a command
|
void |
oneway(Object o)
A one way asynchronous send
|
void |
onException(IOException error)
An unrecoverable exception has occured on the transport
|
protected abstract void |
processInboundWireFormatInfo(WireFormatInfo info) |
protected abstract void |
processOutboundWireFormatInfo(WireFormatInfo info) |
void |
setInitialDelayTime(long initialDelayTime) |
void |
setKeepAliveResponseRequired(boolean value) |
void |
setReadCheckTime(long readCheckTime) |
void |
setUseKeepAlive(boolean val) |
void |
setWriteCheckTime(long writeCheckTime) |
void |
start() |
protected void |
startMonitorThreads() |
void |
stop() |
protected void |
stopMonitorThreads() |
asyncRequest, getNext, getReceiveCounter, getRemoteAddress, getTransportListener, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, narrow, reconnect, request, request, setTransportListener, toString, transportInterupted, transportResumed, updateURIsprotected WireFormat wireFormat
public AbstractInactivityMonitor(Transport next, WireFormat wireFormat)
public void start()
throws Exception
start in interface Servicestart in class TransportFilterExceptionService.start()public void stop()
throws Exception
stop in interface Servicestop in class TransportFilterExceptionService.stop()protected abstract void processInboundWireFormatInfo(WireFormatInfo info) throws IOException
IOExceptionprotected abstract void processOutboundWireFormatInfo(WireFormatInfo info) throws IOException
IOExceptionpublic void onCommand(Object command)
TransportListeneronCommand in interface TransportListeneronCommand in class TransportFilterpublic void oneway(Object o) throws IOException
Transportoneway in interface Transportoneway in class TransportFilterIOExceptionpublic void onException(IOException error)
TransportListeneronException in interface TransportListeneronException in class TransportFilterpublic void setUseKeepAlive(boolean val)
public long getReadCheckTime()
public void setReadCheckTime(long readCheckTime)
public long getWriteCheckTime()
public void setWriteCheckTime(long writeCheckTime)
public long getInitialDelayTime()
public void setInitialDelayTime(long initialDelayTime)
public boolean isKeepAliveResponseRequired()
public void setKeepAliveResponseRequired(boolean value)
public boolean isMonitorStarted()
protected void startMonitorThreads()
throws IOException
IOExceptionprotected abstract boolean configuredOk()
throws IOException
IOExceptionprotected void stopMonitorThreads()
Copyright © 2005-2015 The Apache Software Foundation. All Rights Reserved.