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 Details

    • CommandBuffer

      public CommandBuffer​(int capacity)
  • Method Details

    • getBufferedCommandsCount

      public int getBufferedCommandsCount()
    • getUnconsumedCommandsCount

      public int getUnconsumedCommandsCount()
    • addCommand

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

      public CMD consumeCommand()
    • purgeTillCommand

      public void purgeTillCommand​(int commandIdExclusive)
    • rewindToCommand

      public boolean rewindToCommand​(long commandId)
    • getNextCommandId

      public long getNextCommandId()
    • clear

      public void clear()