java.lang.Object
org.eclipse.milo.opcua.stack.core.channel.messages.AcknowledgeMessage

public class AcknowledgeMessage extends Object
  • Constructor Details

    • AcknowledgeMessage

      public AcknowledgeMessage(long protocolVersion, long receiveBufferSize, long sendBufferSize, long maxMessageSize, long maxChunkCount)
      Parameters:
      protocolVersion - The latest version of the OPC UA TCP protocol supported by the Server.
      receiveBufferSize - The largest MessageChunk that the sender can receive. This value shall not be larger than what the Client requested in the Hello Message. This value shall be greater than or equal to 8192 bytes.
      sendBufferSize - The largest MessageChunk that the sender will send. This value shall not be larger than what the Client requested in the Hello Message. This value shall be greater than or equal to 8192 bytes.
      maxMessageSize - The maximum size for any request Message. The maximum size for any request Message. The Client shall abort the Message with a Bad_RequestTooLarge StatusCode if a request Message exceeds this value. The Message size is calculated using the unencrypted Message body. A value of zero indicates that the Server has no limit.
      maxChunkCount - The maximum number of chunks in any request Message. A value of zero indicates that the Server has no limit.
  • Method Details

    • getProtocolVersion

      public long getProtocolVersion()
    • getReceiveBufferSize

      public long getReceiveBufferSize()
    • getSendBufferSize

      public long getSendBufferSize()
    • getMaxMessageSize

      public long getMaxMessageSize()
    • getMaxChunkCount

      public long getMaxChunkCount()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • encode

      public static void encode(AcknowledgeMessage message, io.netty.buffer.ByteBuf buffer)
    • decode

      public static AcknowledgeMessage decode(io.netty.buffer.ByteBuf buffer)