public class TriangleOrderManager extends ObjectIt manages the order of updates from the primary owner to backup owner.
It depends on the cache topology id. The primary owner assigns the sequence number to the backup command and then sends it to the backup owner. In the backup owner, the command awaits until it is its turn to be executed.
If the command topology id does not match, it throws an
The sequence order starts with 1 and it is per segment based. This allows segments to be updated concurrently.
- Pedro Ruivo
Constructors Constructor Description
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
isNext(int segmentId, long sequenceNumber, int commandTopologyId)
markDelivered(int segmentId, long sequenceNumber, int commandTopologyId)
next(int segmentId, int commandTopologyId)