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
ConstructorsConstructorDescriptionReliableTransport(Transport next, ReplayStrategy replayStrategy) Deprecated.ReliableTransport(Transport next, UdpTransport udpTransport) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected ReplayBufferDeprecated.intDeprecated.intDeprecated.Deprecated.intDeprecated.Deprecated.Deprecated.intDeprecated.voidDeprecated.called to process a commandprotected voidonMissingResponse(Command command, FutureResponse response) Deprecated.Lets attempt to replay the request as a command may have disappearedprotected voidreplayCommands(ReplayCommand command) Deprecated.Deprecated.A synchronous request responseDeprecated.A synchronous request responsevoidrequestReplay(int fromCommandId, int toCommandId) Deprecated.Requests that a range of commands be replayedvoidsetExpectedCounter(int expectedCounter) Deprecated.This property should never really be set - but is mutable primarily for test casesvoidsetReplayBuffer(ReplayBuffer replayBuffer) Deprecated.voidsetReplayBufferCommandCount(int replayBufferSize) Deprecated.Sets the default number of commands which are bufferedvoidsetReplayer(Replayer replayer) Deprecated.voidsetReplayStrategy(ReplayStrategy replayStrategy) Deprecated.voidsetRequestTimeout(int requestTimeout) Deprecated.Sets the default timeout of requests before starting to request commands are replayedvoidstart()Deprecated.toString()Deprecated.Methods inherited from class org.apache.activemq.transport.ResponseCorrelator
asyncRequest, getSequenceGenerator, oneway, onException, stopMethods 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:TransportA synchronous request response- Specified by:
requestin interfaceTransport- Overrides:
requestin classResponseCorrelator- Returns:
- the response
- Throws:
IOException
-
request
Deprecated.Description copied from interface:TransportA synchronous request response- Specified by:
requestin interfaceTransport- Overrides:
requestin classResponseCorrelator- Returns:
- the repsonse or null if timeout
- Throws:
IOException
-
onCommand
Deprecated.Description copied from interface:TransportListenercalled to process a command- Specified by:
onCommandin interfaceTransportListener- Overrides:
onCommandin 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:
toStringin classResponseCorrelator
-
start
Deprecated.- Specified by:
startin interfaceService- Overrides:
startin classTransportFilter- Throws:
Exception- See Also:
-
onMissingResponse
Deprecated.Lets attempt to replay the request as a command may have disappeared -
createReplayBuffer
Deprecated. -
replayCommands
Deprecated.
-