Class 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.
  • Constructor Details

  • Method Details

    • 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 interface Transport
      Overrides:
      request in class ResponseCorrelator
      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 interface Transport
      Overrides:
      request in class ResponseCorrelator
      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 interface TransportListener
      Overrides:
      onCommand in class ResponseCorrelator
    • 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 class ResponseCorrelator
    • start

      public void start() throws Exception
      Deprecated.
      Specified by:
      start in interface Service
      Overrides:
      start in class TransportFilter
      Throws:
      Exception
      See Also:
    • 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.