Class CommandBuffer


  • public class CommandBuffer
    extends java.lang.Object
    NOT THREAD-SAFE! Synchronization must be provided by using code.
    • Constructor Detail

      • CommandBuffer

        public CommandBuffer​(int maxLength,
                             int maxTotalSize)
    • Method Detail

      • getBufferedCommandsCount

        public int getBufferedCommandsCount()
      • getUnconsumedCommandsCount

        public int getUnconsumedCommandsCount()
      • getCommandsSize

        public int getCommandsSize()
      • consumeCommand

        public CMD consumeCommand()
      • purgeTillCommand

        public void purgeTillCommand​(int commandIdExclusive)
      • rewindToCommand

        public boolean rewindToCommand​(long commandId)
      • getNextCommandId

        public long getNextCommandId()
      • clear

        public void clear()