org.objectweb.joram.mom.amqp.marshalling
Class AMQP.Basic.Qos
java.lang.Object
org.objectweb.joram.mom.amqp.marshalling.AbstractMarshallingMethod
org.objectweb.joram.mom.amqp.marshalling.AMQP.Basic.Qos
- All Implemented Interfaces:
- FrameBuilder
- Enclosing class:
- AMQP.Basic
public static class AMQP.Basic.Qos
- extends AbstractMarshallingMethod
This method requests a specific quality of service. The QoS can be
specified for the current channel or for all channels on the connection.
The particular properties and semantics of a qos method always depend on
the content class semantics. Though the qos method could in principle
apply to both peers, it is currently meaningful only for the server.
Field Summary |
boolean |
global
By default the QoS settings apply to the current channel only. |
static int |
INDEX
|
int |
prefetchCount
Specifies a prefetch window in terms of whole messages. |
int |
prefetchSize
The client can request that messages be sent in advance so that when
the client finishes processing a message, the following message is
already held locally, rather than needing to be sent down the channel. |
Constructor Summary |
AMQP.Basic.Qos()
|
AMQP.Basic.Qos(int prefetchSize,
int prefetchCount,
boolean global)
This method requests a specific quality of service. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
prefetchSize
public int prefetchSize
- The client can request that messages be sent in advance so that when
the client finishes processing a message, the following message is
already held locally, rather than needing to be sent down the channel.
Prefetching gives a performance improvement. This field specifies the
prefetch window size in octets. The server will send a message in
advance if it is equal to or smaller in size than the available
prefetch size (and also falls into other prefetch limits). May be set
to zero, meaning "no specific limit", although other prefetch limits
may still apply. The prefetch-size is ignored if the no-ack option is
set.
prefetchCount
public int prefetchCount
- Specifies a prefetch window in terms of whole messages. This field may
be used in combination with the prefetch-size field; a message will
only be sent in advance if both prefetch windows (and those at the
channel and connection level) allow it. The prefetch-count is ignored
if the no-ack option is set.
global
public boolean global
- By default the QoS settings apply to the current channel only. If this
field is set, they are applied to the entire connection.
INDEX
public static final int INDEX
- See Also:
- Constant Field Values
AMQP.Basic.Qos
public AMQP.Basic.Qos(int prefetchSize,
int prefetchCount,
boolean global)
- This method requests a specific quality of service. The QoS can be
specified for the current channel or for all channels on the
connection. The particular properties and semantics of a qos method
always depend on the content class semantics. Though the qos method
could in principle apply to both peers, it is currently meaningful only
for the server.
AMQP.Basic.Qos
public AMQP.Basic.Qos()
getMethodId
public int getMethodId()
- Specified by:
getMethodId
in class AbstractMarshallingMethod
getMethodName
public java.lang.String getMethodName()
- Specified by:
getMethodName
in class AbstractMarshallingMethod
getClassId
public int getClassId()
- Specified by:
getClassId
in class AbstractMarshallingMethod
getClassName
public java.lang.String getClassName()
- Specified by:
getClassName
in class AbstractMarshallingMethod
readFrom
public void readFrom(AMQPInputStream in)
throws java.io.IOException
- Specified by:
readFrom
in class AbstractMarshallingMethod
- Throws:
java.io.IOException
writeTo
public void writeTo(AMQPOutputStream out)
throws java.io.IOException
- Specified by:
writeTo
in class AbstractMarshallingMethod
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2000 - 2009 Scalagent D.T. - All rights reserved