Class Method

    • Constructor Detail

      • Method

        public Method()
    • Method Detail

      • protocolClassId

        public abstract int protocolClassId()
        Retrieve the protocol class ID
        Specified by:
        protocolClassId in interface Method
        Returns:
        the AMQP protocol class ID of this Method
      • protocolMethodId

        public abstract int protocolMethodId()
        Retrieve the protocol method ID
        Specified by:
        protocolMethodId in interface Method
        Returns:
        the AMQP protocol method ID of this Method
      • protocolMethodName

        public abstract String protocolMethodName()
        Retrieve the method name
        Specified by:
        protocolMethodName in interface Method
        Returns:
        the AMQP protocol method name of this Method
      • hasContent

        public abstract boolean hasContent()
        Tell if content is present.
        Returns:
        true if the wire-protocol for this method should involve a content header and body, or false if it should just involve a single method frame.
      • visit

        public abstract Object visit​(AMQImpl.MethodVisitor visitor)
                              throws IOException
        Visitor support (double-dispatch mechanism).
        Parameters:
        visitor - the visitor object
        Returns:
        the result of the "visit" operation
        Throws:
        IOException - if an error is encountered
      • writeArgumentsTo

        public abstract void writeArgumentsTo​(MethodArgumentWriter writer)
                                       throws IOException
        Private API - Autogenerated writer for this method.
        Parameters:
        writer - interface to an object to write the method arguments
        Throws:
        IOException - if an error is encountered
      • appendArgumentDebugStringTo

        public void appendArgumentDebugStringTo​(StringBuilder buffer)
        Public API - debugging utility
        Parameters:
        buffer - the buffer to append debug data to