Interface Writable

    • Method Detail

      • 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

        AsyncCompletionCallback 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​(java.io.DataOutput out)
                   throws java.io.IOException
        Write the content of this object to a DataOutput
        Parameters:
        out - DataOutput
        Throws:
        java.io.IOException - on error