org.objectweb.joram.mom.amqp.marshalling
Class Frame
java.lang.Object
org.objectweb.joram.mom.amqp.marshalling.Frame
public class Frame
- extends java.lang.Object
Represents an AMQP wire-protocol frame:
type, channel, size, payload, end.
Field Summary |
static org.objectweb.util.monolog.api.Logger |
logger
|
Constructor Summary |
Frame(int type,
int channel)
|
Frame(int type,
int channel,
byte[] payload)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
logger
public static org.objectweb.util.monolog.api.Logger logger
Frame
public Frame(int type,
int channel)
Frame
public Frame(int type,
int channel,
byte[] payload)
readFrom
public static Frame readFrom(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
writeTo
public static void writeTo(Frame frame,
java.io.OutputStream out)
throws java.io.IOException
- Throws:
java.io.IOException
getChannel
public int getChannel()
- Returns:
- the channel
setChannel
public void setChannel(int channel)
- Parameters:
channel
- the channel to set
getPayload
public byte[] getPayload()
- Returns:
- the payload
setPayload
public void setPayload(byte[] payload)
- Parameters:
payload
- the payload to set
getType
public int getType()
- Returns:
- the type
setType
public void setType(int type)
- Parameters:
type
- the type to set
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2000 - 2009 Scalagent D.T. - All rights reserved