Interface Writable

All Known Implementing Classes:
AMQPFrame, AttachFrame, BeginFrame, CloseFrame, DetachFrame, DispositionFrame, EndFrame, FlowFrame, Frame, HeartbeatFrame, OpenFrame, ProtocolHeader, SaslChallengeFrame, SaslInitFrame, SaslMechanismsFrame, SaslOutcomeFrame, SaslResponseFrame, TransferFrame

public interface Writable
Interface to write an object to a DataOutput.
Author:
IIT Software GmbH, Bremen/Germany, (c) 2011, All Rights Reserved
  • Method Summary

    Modifier and Type
    Method
    Description
    Alternatively returns a callback which is triggered after writeContent has been called.
    Returns an optional semaphore which is triggered after writeContent has been called.
    void
    Write the content of this object to a DataOutput
  • Method Details

    • getSemaphore

      Semaphore getSemaphore()
      Returns an optional semaphore which is triggered after writeContent has been called. Can be used to ensure an object has been written to a stream until processing continues.
      Returns:
      Semaphore
    • getCallback

      Alternatively returns a callback which is triggered after writeContent has been called. Can be used to ensure an object has been written to a stream until processing continues.
      Returns:
      callback
    • writeContent

      void writeContent(DataOutput out) throws IOException
      Write the content of this object to a DataOutput
      Parameters:
      out - DataOutput
      Throws:
      IOException - on error