Interface SerializableControl


  • public interface SerializableControl
    Flush control interface.
    Author:
    mse
    • Method Detail

      • flushSerializeBuffer

        void flushSerializeBuffer()
        Request to flush serialization buffer. This call will block until buffer is not flushed. To be called when buffer is out of space.
      • ensureBuffer

        void ensureBuffer​(int size)
        Ensures that the specified number of bytes can be serialized, flushing if necessary.
        Parameters:
        size - the number of bytes
      • alignBuffer

        void alignBuffer​(int alignment)
        Align buffer. Note that this takes care only current buffer alignment. If streaming protocol is used, care must be taken that entire stream is aligned.
        Parameters:
        alignment - size in bytes, must be power of two
      • cachedSerialize

        void cachedSerialize​(Field field,
                             ByteBuffer buffer)
        Serialize Field instance via cache.
        Parameters:
        field - Field instance to be serialized
        buffer - the buffer to be serialized to