Class BinaryWriteContext

java.lang.Object
io.ebeaninternal.api.BinaryWriteContext

public final class BinaryWriteContext extends Object
Context used to write binary message (like RemoteTransactionEvent).
  • Constructor Details

  • Method Details

    • 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