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 ReplayBuffer
createReplayBuffer()
Deprecated.int
getBufferedCommandCount()
Deprecated.int
getExpectedCounter()
Deprecated.ReplayBuffer
getReplayBuffer()
Deprecated.int
getReplayBufferCommandCount()
Deprecated.Replayer
getReplayer()
Deprecated.ReplayStrategy
getReplayStrategy()
Deprecated.int
getRequestTimeout()
Deprecated.void
onCommand(Object o)
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.Object
request(Object o)
Deprecated.A synchronous request responseObject
request(Object o, int timeout)
Deprecated.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.String
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 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:Transport
A synchronous request response- Specified by:
request
in interfaceTransport
- Overrides:
request
in classResponseCorrelator
- Returns:
- the response
- Throws:
IOException
-
request
public Object request(Object o, int timeout) throws IOException
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
public void onCommand(Object o)
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
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:
toString
in classResponseCorrelator
-
start
public void start() throws Exception
Deprecated.- Specified by:
start
in interfaceService
- Overrides:
start
in 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.
-
-