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
Modifier and TypeMethodDescriptionAlternatively returns a callback which is triggered after writeContent has been called.Returns an optional semaphore which is triggered after writeContent has been called.void
writeContent
(DataOutput out) 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
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
Write the content of this object to a DataOutput- Parameters:
out
- DataOutput- Throws:
IOException
- on error
-