Package com.swiftmq.amqp
Class AMQPContext
java.lang.Object
com.swiftmq.amqp.AMQPContext
AMQP context provides thread pools and trace objects to the SwiftMQ client.
It is passed to the AMQP connection
and must be instantiated as client context: new AMQPContext(AMQPContext.CLIENT);
- Author:
- IIT Software GmbH, Bremen/Germany, (c) 2011, All Rights Reserved
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
protected final ReentrantReadWriteLock
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the connection thread pool.Returns a frame tracer.Returns a processing tracer.protected ThreadPool
protected Tracer
protected Tracer
protected ThreadPool
Returns the session thread pool.
-
Field Details
-
CLIENT
public static final int CLIENT- See Also:
-
ROUTER
public static final int ROUTER- See Also:
-
lock
-
-
Constructor Details
-
AMQPContext
public AMQPContext(int ctx) Constructs an AMQP context.- Parameters:
ctx
- the context, CLIENT or ROUTER
-
-
Method Details
-
getFrameTracer
Returns a frame tracer.- Returns:
- frame tracer
-
getProcessingTracer
Returns a processing tracer.- Returns:
- processing tracer
-
getConnectionPool
Returns the connection thread pool.- Returns:
- connection thread pool
-
getSessionPool
Returns the session thread pool.- Returns:
- session thread pool
-
getRouterFrameTracer
-
getRouterProcessiongTracer
-
getRouterConnectionPool
-
getRouterSessionPool
-