org.apache.activemq.transport.amqp
Class AmqpWireFormat

java.lang.Object
  extended by org.apache.activemq.transport.amqp.AmqpWireFormat
All Implemented Interfaces:
WireFormat

public class AmqpWireFormat
extends java.lang.Object
implements WireFormat


Constructor Summary
AmqpWireFormat()
           
 
Method Summary
 long getMaxFrameSize()
           
 int getVersion()
           
 ByteSequence marshal(java.lang.Object command)
           
 void marshal(java.lang.Object command, java.io.DataOutput dataOut)
           
 void setMaxFrameSize(long maxFrameSize)
           
 void setVersion(int version)
           
 java.lang.Object unmarshal(ByteSequence packet)
           
 java.lang.Object unmarshal(java.io.DataInput dataIn)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AmqpWireFormat

public AmqpWireFormat()
Method Detail

marshal

public ByteSequence marshal(java.lang.Object command)
                     throws java.io.IOException
Specified by:
marshal in interface WireFormat
Throws:
java.io.IOException

unmarshal

public java.lang.Object unmarshal(ByteSequence packet)
                           throws java.io.IOException
Specified by:
unmarshal in interface WireFormat
Throws:
java.io.IOException

marshal

public void marshal(java.lang.Object command,
                    java.io.DataOutput dataOut)
             throws java.io.IOException
Specified by:
marshal in interface WireFormat
Throws:
java.io.IOException

unmarshal

public java.lang.Object unmarshal(java.io.DataInput dataIn)
                           throws java.io.IOException
Specified by:
unmarshal in interface WireFormat
Throws:
java.io.IOException

setVersion

public void setVersion(int version)
Specified by:
setVersion in interface WireFormat

getVersion

public int getVersion()
Specified by:
getVersion in interface WireFormat
Returns:
the version of the wire format

getMaxFrameSize

public long getMaxFrameSize()

setMaxFrameSize

public void setMaxFrameSize(long maxFrameSize)


Copyright © 2005-2013 Red Hat, Inc.. All Rights Reserved.