Class CommandBuffer
java.lang.Object
org.teamapps.uisession.commandbuffer.CommandBuffer
NOT THREAD-SAFE! Synchronization must be provided by client code.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCommand(CMD command) voidclear()intintlongintvoidpurgeTillCommand(int commandIdExclusive) booleanrewindToCommand(long commandId)
-
Constructor Details
-
CommandBuffer
public CommandBuffer(int maxLength, int maxTotalSize)
-
-
Method Details
-
getBufferedCommandsCount
public int getBufferedCommandsCount() -
getUnconsumedCommandsCount
public int getUnconsumedCommandsCount() -
getCommandsSize
public int getCommandsSize() -
addCommand
- Throws:
CommandBufferException
-
consumeCommand
-
purgeTillCommand
public void purgeTillCommand(int commandIdExclusive) -
rewindToCommand
public boolean rewindToCommand(long commandId) -
getNextCommandId
public long getNextCommandId() -
clear
public void clear()
-