public class AmqpWireFormat extends Object implements org.apache.activemq.wireformat.WireFormat
| Modifier and Type | Class and Description |
|---|---|
static interface |
AmqpWireFormat.ResetListener |
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_MAX_FRAME_SIZE |
static int |
NO_AMQP_MAX_FRAME_SIZE |
| Constructor and Description |
|---|
AmqpWireFormat() |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxAmqpFrameSize() |
long |
getMaxFrameSize() |
AmqpHeader |
getMinimallySupportedHeader()
Returns an AMQP Header object that represents the minimally protocol
versions supported by this transport.
|
int |
getVersion() |
boolean |
isAllowNonSaslConnections() |
boolean |
isHeaderValid(AmqpHeader header)
Given an AMQP header validate that the AMQP magic is present and
if so that the version and protocol values align with what we support.
|
boolean |
isMagicRead() |
ByteSequence |
marshal(Object command) |
void |
marshal(Object command,
DataOutput dataOut) |
void |
resetMagicRead() |
void |
setAllowNonSaslConnections(boolean allowNonSaslConnections) |
void |
setMaxAmqpFrameSize(int maxAmqpFrameSize) |
void |
setMaxFrameSize(long maxFrameSize) |
void |
setProtocolResetListener(AmqpWireFormat.ResetListener listener) |
void |
setVersion(int version) |
Object |
unmarshal(ByteSequence packet) |
Object |
unmarshal(DataInput dataIn) |
public static final long DEFAULT_MAX_FRAME_SIZE
public static final int NO_AMQP_MAX_FRAME_SIZE
public AmqpWireFormat()
public ByteSequence marshal(Object command) throws IOException
marshal in interface org.apache.activemq.wireformat.WireFormatIOExceptionpublic Object unmarshal(ByteSequence packet) throws IOException
unmarshal in interface org.apache.activemq.wireformat.WireFormatIOExceptionpublic void marshal(Object command, DataOutput dataOut) throws IOException
marshal in interface org.apache.activemq.wireformat.WireFormatIOExceptionpublic Object unmarshal(DataInput dataIn) throws IOException
unmarshal in interface org.apache.activemq.wireformat.WireFormatIOExceptionpublic boolean isHeaderValid(AmqpHeader header)
header - the header instance received from the client.public AmqpHeader getMinimallySupportedHeader()
public void setVersion(int version)
setVersion in interface org.apache.activemq.wireformat.WireFormatpublic int getVersion()
getVersion in interface org.apache.activemq.wireformat.WireFormatpublic void resetMagicRead()
public void setProtocolResetListener(AmqpWireFormat.ResetListener listener)
public boolean isMagicRead()
public long getMaxFrameSize()
public void setMaxFrameSize(long maxFrameSize)
public int getMaxAmqpFrameSize()
public void setMaxAmqpFrameSize(int maxAmqpFrameSize)
public boolean isAllowNonSaslConnections()
public void setAllowNonSaslConnections(boolean allowNonSaslConnections)
Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.