Package com.swiftmq.amqp
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AsyncCompletionCallback
getCallback()
Alternatively returns a callback which is triggered after writeContent has been called.Semaphore
getSemaphore()
Returns an optional semaphore which is triggered after writeContent has been called.void
writeContent(java.io.DataOutput out)
Write the content of this object to a DataOutput
-
-
-
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
-
-