public abstract class AMQTypedValue extends Object
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 and Description |
|---|
AMQTypedValue() |
| Modifier and Type | Method and Description |
|---|---|
static AMQTypedValue |
createAMQTypedValue(AMQType type,
Object value) |
static AMQTypedValue |
createAMQTypedValue(int i) |
static AMQTypedValue |
createAMQTypedValue(long value) |
abstract int |
getEncodingSize() |
abstract AMQType |
getType() |
abstract Object |
getValue() |
static AMQTypedValue |
readFromBuffer(ByteBuffer buffer) |
static AMQTypedValue |
toTypedValue(Object val) |
abstract void |
writeToBuffer(ByteBuffer buffer) |
public abstract AMQType getType()
public abstract Object getValue()
public abstract void writeToBuffer(ByteBuffer buffer)
public abstract int getEncodingSize()
public static AMQTypedValue readFromBuffer(ByteBuffer buffer)
public static AMQTypedValue createAMQTypedValue(int i)
public static AMQTypedValue createAMQTypedValue(long value)
public static AMQTypedValue createAMQTypedValue(AMQType type, Object value)
public static AMQTypedValue toTypedValue(Object val)
Copyright © 2006–2018 The Apache Software Foundation. All rights reserved.