Package com.swiftmq.amqp
Class AMQPContext
- java.lang.Object
-
- com.swiftmq.amqp.AMQPContext
-
public class AMQPContext extends java.lang.Object
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
-
-
Constructor Summary
Constructors Constructor Description AMQPContext(int ctx)
Constructs an AMQP context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ThreadPool
getConnectionPool()
Returns the connection thread pool.Tracer
getFrameTracer()
Returns a frame tracer.Tracer
getProcessingTracer()
Returns a processing tracer.protected ThreadPool
getRouterConnectionPool()
protected Tracer
getRouterFrameTracer()
protected Tracer
getRouterProcessiongTracer()
protected ThreadPool
getRouterSessionPool()
ThreadPool
getSessionPool()
Returns the session thread pool.
-
-
-
Field Detail
-
CLIENT
public static final int CLIENT
- See Also:
- Constant Field Values
-
ROUTER
public static final int ROUTER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFrameTracer
public Tracer getFrameTracer()
Returns a frame tracer.- Returns:
- frame tracer
-
getProcessingTracer
public Tracer getProcessingTracer()
Returns a processing tracer.- Returns:
- processing tracer
-
getConnectionPool
public ThreadPool getConnectionPool()
Returns the connection thread pool.- Returns:
- connection thread pool
-
getSessionPool
public ThreadPool getSessionPool()
Returns the session thread pool.- Returns:
- session thread pool
-
getRouterFrameTracer
protected Tracer getRouterFrameTracer()
-
getRouterProcessiongTracer
protected Tracer getRouterProcessiongTracer()
-
getRouterConnectionPool
protected ThreadPool getRouterConnectionPool()
-
getRouterSessionPool
protected ThreadPool getRouterSessionPool()
-
-