Package io.ebeaninternal.api
Class BinaryWriteContext
- java.lang.Object
-
- io.ebeaninternal.api.BinaryWriteContext
-
public class BinaryWriteContext extends Object
Context used to write binary message (like RemoteTransactionEvent).
-
-
Constructor Summary
Constructors Constructor Description BinaryWriteContext(DataOutputStream out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
counter()
Return the number of message parts that have been written.void
end()
End of message parts.DataOutputStream
os()
Return the output stream to write to.DataOutputStream
start(int type)
Start a message part with a given type code.
-
-
-
Constructor Detail
-
BinaryWriteContext
public BinaryWriteContext(DataOutputStream out)
-
-
Method Detail
-
counter
public long counter()
Return the number of message parts that have been written.
-
os
public DataOutputStream os()
Return the output stream to write to.
-
start
public DataOutputStream start(int type) throws IOException
Start a message part with a given type code.- Throws:
IOException
-
end
public void end() throws IOException
End of message parts.- Throws:
IOException
-
-