Class CommandBuffer

java.lang.Object
org.teamapps.uisession.commandbuffer.CommandBuffer

public class CommandBuffer extends Object
NOT THREAD-SAFE! Synchronization must be provided by client code.
  • Constructor Details

    • CommandBuffer

      public CommandBuffer(int maxLength, int maxTotalSize)
  • Method Details

    • getBufferedCommandsCount

      public int getBufferedCommandsCount()
    • getUnconsumedCommandsCount

      public int getUnconsumedCommandsCount()
    • getCommandsSize

      public int getCommandsSize()
    • addCommand

      public void addCommand(CMD command) throws CommandBufferException
      Throws:
      CommandBufferException
    • consumeCommand

      public CMD consumeCommand()
    • purgeTillCommand

      public void purgeTillCommand(int commandIdExclusive)
    • rewindToCommand

      public boolean rewindToCommand(long commandId)
    • getNextCommandId

      public long getNextCommandId()
    • clear

      public void clear()