Package org.teamapps.uisession
Class CommandBuffer
java.lang.Object
org.teamapps.uisession.CommandBuffer
public class CommandBuffer
extends java.lang.Object
NOT THREAD-SAFE! Synchronization must be provided by using code.
-
Constructor Summary
Constructors Constructor Description CommandBuffer(int capacity) -
Method Summary
Modifier and Type Method Description voidaddCommand(CMD command)voidclear()CMDconsumeCommand()intgetBufferedCommandsCount()longgetNextCommandId()intgetUnconsumedCommandsCount()voidpurgeTillCommand(int commandIdExclusive)booleanrewindToCommand(long commandId)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CommandBuffer
public CommandBuffer(int capacity)
-
-
Method Details
-
getBufferedCommandsCount
public int getBufferedCommandsCount() -
getUnconsumedCommandsCount
public int getUnconsumedCommandsCount() -
addCommand
-
consumeCommand
-
purgeTillCommand
public void purgeTillCommand(int commandIdExclusive) -
rewindToCommand
public boolean rewindToCommand(long commandId) -
getNextCommandId
public long getNextCommandId() -
clear
public void clear()
-