Class ReliableTransport
java.lang.Object
org.apache.activemq.transport.TransportFilter
org.apache.activemq.transport.ResponseCorrelator
org.apache.activemq.transport.reliable.ReliableTransport
- All Implemented Interfaces:
Service
,Transport
,TransportListener
Deprecated.
This interceptor deals with out of order commands together with being able to
handle dropped commands and the re-requesting dropped commands.
-
Field Summary
Fields inherited from class org.apache.activemq.transport.TransportFilter
next, transportListener
-
Constructor Summary
ConstructorDescriptionReliableTransport
(Transport next, ReplayStrategy replayStrategy) Deprecated.ReliableTransport
(Transport next, UdpTransport udpTransport) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected ReplayBuffer
Deprecated.int
Deprecated.int
Deprecated.Deprecated.int
Deprecated.Deprecated.Deprecated.int
Deprecated.void
Deprecated.called to process a commandprotected void
onMissingResponse
(Command command, FutureResponse response) Deprecated.Lets attempt to replay the request as a command may have disappearedprotected void
replayCommands
(ReplayCommand command) Deprecated.Deprecated.A synchronous request responseDeprecated.A synchronous request responsevoid
requestReplay
(int fromCommandId, int toCommandId) Deprecated.Requests that a range of commands be replayedvoid
setExpectedCounter
(int expectedCounter) Deprecated.This property should never really be set - but is mutable primarily for test casesvoid
setReplayBuffer
(ReplayBuffer replayBuffer) Deprecated.void
setReplayBufferCommandCount
(int replayBufferSize) Deprecated.Sets the default number of commands which are bufferedvoid
setReplayer
(Replayer replayer) Deprecated.void
setReplayStrategy
(ReplayStrategy replayStrategy) Deprecated.void
setRequestTimeout
(int requestTimeout) Deprecated.Sets the default timeout of requests before starting to request commands are replayedvoid
start()
Deprecated.toString()
Deprecated.Methods inherited from class org.apache.activemq.transport.ResponseCorrelator
asyncRequest, getSequenceGenerator, oneway, onException, stop
Methods inherited from class org.apache.activemq.transport.TransportFilter
getNext, getPeerCertificates, getReceiveCounter, getRemoteAddress, getTransportListener, getWireFormat, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, narrow, reconnect, setPeerCertificates, setTransportListener, transportInterupted, transportResumed, updateURIs
-
Constructor Details
-
ReliableTransport
Deprecated. -
ReliableTransport
Deprecated.- Throws:
IOException
-
-
Method Details
-
requestReplay
public void requestReplay(int fromCommandId, int toCommandId) Deprecated.Requests that a range of commands be replayed -
request
Deprecated.Description copied from interface:Transport
A synchronous request response- Specified by:
request
in interfaceTransport
- Overrides:
request
in classResponseCorrelator
- Returns:
- the response
- Throws:
IOException
-
request
Deprecated.Description copied from interface:Transport
A synchronous request response- Specified by:
request
in interfaceTransport
- Overrides:
request
in classResponseCorrelator
- Returns:
- the repsonse or null if timeout
- Throws:
IOException
-
onCommand
Deprecated.Description copied from interface:TransportListener
called to process a command- Specified by:
onCommand
in interfaceTransportListener
- Overrides:
onCommand
in classResponseCorrelator
-
getBufferedCommandCount
public int getBufferedCommandCount()Deprecated. -
getExpectedCounter
public int getExpectedCounter()Deprecated. -
setExpectedCounter
public void setExpectedCounter(int expectedCounter) Deprecated.This property should never really be set - but is mutable primarily for test cases -
getRequestTimeout
public int getRequestTimeout()Deprecated. -
setRequestTimeout
public void setRequestTimeout(int requestTimeout) Deprecated.Sets the default timeout of requests before starting to request commands are replayed -
getReplayStrategy
Deprecated. -
getReplayBuffer
Deprecated. -
setReplayBuffer
Deprecated. -
getReplayBufferCommandCount
public int getReplayBufferCommandCount()Deprecated. -
setReplayBufferCommandCount
public void setReplayBufferCommandCount(int replayBufferSize) Deprecated.Sets the default number of commands which are buffered -
setReplayStrategy
Deprecated. -
getReplayer
Deprecated. -
setReplayer
Deprecated. -
toString
Deprecated.- Overrides:
toString
in classResponseCorrelator
-
start
Deprecated.- Specified by:
start
in interfaceService
- Overrides:
start
in classTransportFilter
- Throws:
Exception
- See Also:
-
onMissingResponse
Deprecated.Lets attempt to replay the request as a command may have disappeared -
createReplayBuffer
Deprecated. -
replayCommands
Deprecated.
-