Class UnCxSendReq

    • Constructor Detail

      • UnCxSendReq

        public UnCxSendReq()
      • UnCxSendReq

        public UnCxSendReq​(UnCxSendReq other,
                           int nesting)
      • UnCxSendReq

        public UnCxSendReq​(CipPath target,
                           int service)
      • UnCxSendReq

        public UnCxSendReq​(CipPath target,
                           int service,
                           java.nio.ByteBuffer payload)
      • UnCxSendReq

        public UnCxSendReq​(java.nio.ByteBuffer source)
    • Method Detail

      • setPayload

        public void setPayload​(java.nio.ByteBuffer source)
        Description copied from class: CxMgrReq
        Implementations must call this method at the beginning of their setPayload() method.
        Specified by:
        setPayload in interface CipMessage
        Overrides:
        setPayload in class CxMgrReq
        Parameters:
        source - Source buffer containing the encoded new payload.
      • putPayload

        public void putPayload​(java.nio.ByteBuffer dest)
        Description copied from class: CxMgrReq
        Implementations must call this method at the beginning of their putPayload() method.
        Specified by:
        putPayload in interface CipMessage
        Overrides:
        putPayload in class CxMgrReq
        Parameters:
        dest - Destination buffer for the encoded payload.
      • payloadLength

        public int payloadLength()
        Description copied from class: CipRequest
        Subclasses must override this unless they populate the payload and payloadActual fields.
        Specified by:
        payloadLength in interface CipMessage
        Overrides:
        payloadLength in class CipRequest
        Returns:
        The byte length of the encoded payload only.
      • accept

        public void accept​(CipReply reply)
        The Unconnected Send Request must first delegate any reply to the wrapped request before any additional callbacks are handled. This ensures the inner request is attached as the "real" request for the reply. Note that when an unconnected send is unwrapped in the final Connection Manager and the inner request executed locally, the Connection Manager will have the inner request "take" the wrapper's callbacks, if any.
        Specified by:
        accept in interface CipReplyConsumer
        Overrides:
        accept in class CipRequest