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 public class ReliableTransport extends ResponseCorrelator
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
Constructors Constructor Description ReliableTransport(Transport next, ReplayStrategy replayStrategy)Deprecated.ReliableTransport(Transport next, UdpTransport udpTransport)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected ReplayBuffercreateReplayBuffer()Deprecated.intgetBufferedCommandCount()Deprecated.intgetExpectedCounter()Deprecated.ReplayBuffergetReplayBuffer()Deprecated.intgetReplayBufferCommandCount()Deprecated.ReplayergetReplayer()Deprecated.ReplayStrategygetReplayStrategy()Deprecated.intgetRequestTimeout()Deprecated.voidonCommand(Object o)Deprecated.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.Objectrequest(Object o)Deprecated.A synchronous request responseObjectrequest(Object o, int timeout)Deprecated.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.StringtoString()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 Detail
-
ReliableTransport
public ReliableTransport(Transport next, ReplayStrategy replayStrategy)
Deprecated.
-
ReliableTransport
public ReliableTransport(Transport next, UdpTransport udpTransport) throws IOException
Deprecated.- Throws:
IOException
-
-
Method Detail
-
requestReplay
public void requestReplay(int fromCommandId, int toCommandId)Deprecated.Requests that a range of commands be replayed
-
request
public Object request(Object o) throws IOException
Deprecated.Description copied from interface:TransportA synchronous request response- Specified by:
requestin interfaceTransport- Overrides:
requestin classResponseCorrelator- Returns:
- the response
- Throws:
IOException
-
request
public Object request(Object o, int timeout) throws IOException
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
public void onCommand(Object o)
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
public ReplayStrategy getReplayStrategy()
Deprecated.
-
getReplayBuffer
public ReplayBuffer getReplayBuffer()
Deprecated.
-
setReplayBuffer
public void setReplayBuffer(ReplayBuffer replayBuffer)
Deprecated.
-
getReplayBufferCommandCount
public int getReplayBufferCommandCount()
Deprecated.
-
setReplayBufferCommandCount
public void setReplayBufferCommandCount(int replayBufferSize)
Deprecated.Sets the default number of commands which are buffered
-
setReplayStrategy
public void setReplayStrategy(ReplayStrategy replayStrategy)
Deprecated.
-
getReplayer
public Replayer getReplayer()
Deprecated.
-
setReplayer
public void setReplayer(Replayer replayer)
Deprecated.
-
toString
public String toString()
Deprecated.- Overrides:
toStringin classResponseCorrelator
-
start
public void start() throws ExceptionDeprecated.- Specified by:
startin interfaceService- Overrides:
startin classTransportFilter- Throws:
Exception- See Also:
Service.start()
-
onMissingResponse
protected void onMissingResponse(Command command, FutureResponse response)
Deprecated.Lets attempt to replay the request as a command may have disappeared
-
createReplayBuffer
protected ReplayBuffer createReplayBuffer()
Deprecated.
-
replayCommands
protected void replayCommands(ReplayCommand command)
Deprecated.
-
-