Package gg.xp.xivsupport.replay
Class ReplayController
java.lang.Object
gg.xp.xivsupport.replay.ReplayController
-
Constructor Summary
ConstructorDescriptionReplayController
(EventMaster master, EventIterator<? extends Event> events, boolean decompress) -
Method Summary
Modifier and TypeMethodDescriptionvoid
int
advanceBy
(int count) Advance by a certain number of events.void
advanceByAsync
(int count) Future<?>
advanceByAsyncWhile
(Supplier<Boolean> advWhile) boolean
protected void
preProcessEvent
(Event event)
-
Constructor Details
-
ReplayController
public ReplayController(EventMaster master, EventIterator<? extends Event> events, boolean decompress)
-
-
Method Details
-
getCounts
-
addCallback
-
advanceBy
public int advanceBy(int count) Advance by a certain number of events. While this is synchronous in the sense that it will not return until the events have been enqueued, it is not asynchronous in the sense that events are merely enqueued rather than processed immediately.- Parameters:
count
- Count to advance by- Returns:
- Actual count advanced by, which will be less than 'count' if there were less than 'count' events remaining in the replay.
-
preProcessEvent
-
advanceByAsync
public void advanceByAsync(int count) -
advanceByAsyncWhile
-
hasMoreEvents
public boolean hasMoreEvents()
-