Package org.apache.activemq.transport
Class InactivityMonitor
- java.lang.Object
-
- org.apache.activemq.transport.TransportFilter
-
- org.apache.activemq.transport.AbstractInactivityMonitor
-
- org.apache.activemq.transport.InactivityMonitor
-
- All Implemented Interfaces:
Service,Transport,TransportListener
- Direct Known Subclasses:
HttpInactivityMonitor
public class InactivityMonitor extends AbstractInactivityMonitor
Used to make sure that commands are arriving periodically from the peer of the transport.
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.transport.AbstractInactivityMonitor
wireFormat
-
Fields inherited from class org.apache.activemq.transport.TransportFilter
next, transportListener
-
-
Constructor Summary
Constructors Constructor Description InactivityMonitor(Transport next, WireFormat wireFormat)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanconfiguredOk()booleanisIgnoreAllWireFormatInfo()booleanisIgnoreRemoteWireFormat()protected voidprocessInboundWireFormatInfo(WireFormatInfo info)protected voidprocessOutboundWireFormatInfo(WireFormatInfo info)voidsetIgnoreAllWireFormatInfo(boolean ignoreAllWireFormatInfo)voidsetIgnoreRemoteWireFormat(boolean ignoreRemoteWireFormat)voidstart()protected voidstartMonitorThreads()-
Methods inherited from class org.apache.activemq.transport.AbstractInactivityMonitor
getConnectAttemptTimeout, getInitialDelayTime, getReadCheckTime, getWriteCheckTime, isKeepAliveResponseRequired, isMonitorStarted, onCommand, oneway, onException, setConnectAttemptTimeout, setInitialDelayTime, setKeepAliveResponseRequired, setReadCheckTime, setUseKeepAlive, setWriteCheckTime, startConnectCheckTask, startConnectCheckTask, stop, stopConnectCheckTask, stopMonitorThreads
-
Methods inherited from class org.apache.activemq.transport.TransportFilter
asyncRequest, getNext, getPeerCertificates, getReceiveCounter, getRemoteAddress, getTransportListener, getWireFormat, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, narrow, reconnect, request, request, setPeerCertificates, setTransportListener, toString, transportInterupted, transportResumed, updateURIs
-
-
-
-
Constructor Detail
-
InactivityMonitor
public InactivityMonitor(Transport next, WireFormat wireFormat)
-
-
Method Detail
-
start
public void start() throws Exception- Specified by:
startin interfaceService- Overrides:
startin classAbstractInactivityMonitor- Throws:
Exception- See Also:
Service.start()
-
processInboundWireFormatInfo
protected void processInboundWireFormatInfo(WireFormatInfo info) throws IOException
- Specified by:
processInboundWireFormatInfoin classAbstractInactivityMonitor- Throws:
IOException
-
processOutboundWireFormatInfo
protected void processOutboundWireFormatInfo(WireFormatInfo info) throws IOException
- Specified by:
processOutboundWireFormatInfoin classAbstractInactivityMonitor- Throws:
IOException
-
startMonitorThreads
protected void startMonitorThreads() throws IOException- Overrides:
startMonitorThreadsin classAbstractInactivityMonitor- Throws:
IOException
-
configuredOk
protected boolean configuredOk() throws IOException- Specified by:
configuredOkin classAbstractInactivityMonitor- Throws:
IOException
-
isIgnoreAllWireFormatInfo
public boolean isIgnoreAllWireFormatInfo()
-
setIgnoreAllWireFormatInfo
public void setIgnoreAllWireFormatInfo(boolean ignoreAllWireFormatInfo)
-
isIgnoreRemoteWireFormat
public boolean isIgnoreRemoteWireFormat()
-
setIgnoreRemoteWireFormat
public void setIgnoreRemoteWireFormat(boolean ignoreRemoteWireFormat)
-
-