Class BufferOrEvent


  • public class BufferOrEvent
    extends Object
    Either type for Buffer or AbstractEvent instances tagged with the channel index, from which they were received.
    • Constructor Detail

      • BufferOrEvent

        public BufferOrEvent​(Buffer buffer,
                             InputChannelInfo channelInfo,
                             boolean moreAvailable,
                             boolean morePriorityEvents)
      • BufferOrEvent

        public BufferOrEvent​(AbstractEvent event,
                             boolean hasPriority,
                             InputChannelInfo channelInfo,
                             boolean moreAvailable,
                             int size,
                             boolean morePriorityEvents)
    • Method Detail

      • isBuffer

        public boolean isBuffer()
      • isEvent

        public boolean isEvent()
      • getBuffer

        public Buffer getBuffer()
      • moreAvailable

        public boolean moreAvailable()
      • morePriorityEvents

        public boolean morePriorityEvents()
      • setMoreAvailable

        public void setMoreAvailable​(boolean moreAvailable)
      • getSize

        public int getSize()
      • hasPriority

        public boolean hasPriority()