Klasse CommandBuffer
java.lang.Object
org.teamapps.uisession.commandbuffer.CommandBuffer
NOT THREAD-SAFE! Synchronization must be provided by client code.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddCommand(CMD command) voidclear()intintlongintvoidpurgeTillCommand(int commandIdExclusive) booleanrewindToCommand(long commandId)
-
Konstruktordetails
-
CommandBuffer
public CommandBuffer(int maxLength, int maxTotalSize)
-
-
Methodendetails
-
getBufferedCommandsCount
public int getBufferedCommandsCount() -
getUnconsumedCommandsCount
public int getUnconsumedCommandsCount() -
getCommandsSize
public int getCommandsSize() -
addCommand
- Löst aus:
CommandBufferException
-
consumeCommand
-
purgeTillCommand
public void purgeTillCommand(int commandIdExclusive) -
rewindToCommand
public boolean rewindToCommand(long commandId) -
getNextCommandId
public long getNextCommandId() -
clear
public void clear()
-