Class TapOperationImpl

    • Field Detail

      • bytesProcessed

        private int bytesProcessed
      • bodylen

        private int bodylen
      • header

        private byte[] header
      • message

        private byte[] message
    • Method Detail

      • initialize

        public abstract void initialize()
        Description copied from interface: Operation
        Initialize this operation. This is used to prepare output byte buffers and stuff.
        Specified by:
        initialize in interface Operation
        Specified by:
        initialize in class BaseOperationImpl
      • readFromBuffer

        public void readFromBuffer​(java.nio.ByteBuffer data)
                            throws java.io.IOException
        Description copied from class: OperationImpl
        Read from the incoming ByteBuffer. Reading from the buffer is done in stages, depending on how much data can be read at once. First, the header is read and then parsed (24 bytes, indicated by OperationImpl.MIN_RECV_PACKET). Then, the payload is read (if one is available for this operation and can be loaded fully).
        Specified by:
        readFromBuffer in interface Operation
        Overrides:
        readFromBuffer in class OperationImpl
        Parameters:
        data - the buffer to read from.
        Throws:
        java.io.IOException - if an error happened during parsing/reading.