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(MarkableDataInput buffer) |
static AMQTypedValue |
toTypedValue(Object val) |
abstract void |
writeToBuffer(DataOutput buffer) |
public abstract AMQType getType()
public abstract Object getValue()
public abstract void writeToBuffer(DataOutput buffer) throws IOException
IOException
public abstract int getEncodingSize()
public static AMQTypedValue readFromBuffer(MarkableDataInput buffer) throws IOException
IOException
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–2016 The Apache Software Foundation. All rights reserved.