Interface ReplayStrategy
-
- All Known Implementing Classes:
DefaultReplayStrategy,ExceptionIfDroppedReplayStrategy
public interface ReplayStrategyA pluggable strategy for how to deal with dropped packets.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanonDroppedPackets(ReliableTransport transport, int expectedCounter, int actualCounter, int nextAvailableCounter)Deals with a dropped packet.voidonReceivedPacket(ReliableTransport transport, long expectedCounter)
-
-
-
Method Detail
-
onDroppedPackets
boolean onDroppedPackets(ReliableTransport transport, int expectedCounter, int actualCounter, int nextAvailableCounter) throws IOException
Deals with a dropped packet.- Parameters:
transport- the transport on which the packet was droppedexpectedCounter- the expected command counteractualCounter- the actual command counternextAvailableCounter- TODO- Returns:
- true if the command should be buffered or false if it should be discarded
- Throws:
IOException
-
onReceivedPacket
void onReceivedPacket(ReliableTransport transport, long expectedCounter)
-
-