Interface ReplayBuffer
- All Known Implementing Classes:
DefaultReplayBuffer
public interface ReplayBuffer
This class keeps around a buffer of old commands which have been sent on
an unreliable transport. The buffers are of type Object as they could be datagrams
or byte[] or ByteBuffer - depending on the underlying transport implementation.
-
Method Summary
Modifier and TypeMethodDescriptionvoidSubmit a buffer for caching around for a period of time, during which time it can be replayed to users interested in it.voidreplayMessages(int fromCommandId, int toCommandId, Replayer replayer) voidsetReplayBufferListener(ReplayBufferListener bufferPoolAdapter)
-
Method Details
-
addBuffer
Submit a buffer for caching around for a period of time, during which time it can be replayed to users interested in it. -
setReplayBufferListener
-
replayMessages
- Throws:
IOException
-