Class AMQTypedValue
- java.lang.Object
-
- org.apache.qpid.server.protocol.v0_8.AMQTypedValue
-
public abstract class AMQTypedValue extends java.lang.ObjectAMQTypedValue combines together a native Java Object value, and anAMQType, 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 Summary
Constructors Constructor Description AMQTypedValue()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static AMQTypedValuecreateAMQTypedValue(int i)static AMQTypedValuecreateAMQTypedValue(long value)static AMQTypedValuecreateAMQTypedValue(AMQType type, java.lang.Object value)abstract intgetEncodingSize()abstract AMQTypegetType()abstract java.lang.ObjectgetValue()static AMQTypedValuereadFromBuffer(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer)static AMQTypedValuetoTypedValue(java.lang.Object val)abstract voidwriteToBuffer(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer)
-
-
-
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)
-
-