Class AMQTypedValue


  • public abstract class AMQTypedValue
    extends java.lang.Object
    AMQTypedValue combines together a native Java Object value, and an AMQType, as a fully typed AMQP parameter value. It provides the ability to read and write fully typed parameters to and from byte buffers. It also provides the ability to create such parameters from Java native value and a type tag or to extract the native value and type from one.
    • Constructor Detail

      • AMQTypedValue

        public AMQTypedValue()
    • Method Detail

      • getType

        public abstract AMQType getType()
      • getValue

        public abstract java.lang.Object getValue()
      • writeToBuffer

        public abstract void writeToBuffer​(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer)
      • getEncodingSize

        public abstract int getEncodingSize()
      • readFromBuffer

        public static AMQTypedValue readFromBuffer​(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer)
      • createAMQTypedValue

        public static AMQTypedValue createAMQTypedValue​(int i)
      • createAMQTypedValue

        public static AMQTypedValue createAMQTypedValue​(long value)
      • createAMQTypedValue

        public static AMQTypedValue createAMQTypedValue​(AMQType type,
                                                        java.lang.Object value)
      • toTypedValue

        public static AMQTypedValue toTypedValue​(java.lang.Object val)