Package com.swiftmq.jms.v500
Class ConnectionConsumerImpl
- java.lang.Object
-
- com.swiftmq.jms.v500.ConnectionConsumerImpl
-
- All Implemented Interfaces:
RequestService
,javax.jms.ConnectionConsumer
- Direct Known Subclasses:
QueueConnectionConsumerImpl
,TopicConnectionConsumerImpl
public abstract class ConnectionConsumerImpl extends java.lang.Object implements javax.jms.ConnectionConsumer, RequestService
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DISPATCH_TOKEN
-
Constructor Summary
Constructors Constructor Description ConnectionConsumerImpl(ConnectionImpl myConnection, int dispatchId, RequestRegistry requestRegistry, javax.jms.ServerSessionPool serverSessionPool, int maxMessages)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
close()
protected void
fillCache()
protected abstract java.lang.String
getQueueName()
javax.jms.ServerSessionPool
getServerSessionPool()
boolean
isClosed()
void
processRequest(AsyncMessageDeliveryRequest request, boolean hasNext)
void
serviceRequest(Request request)
void
setMyDispatchId(int myDispatchId)
-
-
-
Field Detail
-
DISPATCH_TOKEN
public static final java.lang.String DISPATCH_TOKEN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ConnectionConsumerImpl
public ConnectionConsumerImpl(ConnectionImpl myConnection, int dispatchId, RequestRegistry requestRegistry, javax.jms.ServerSessionPool serverSessionPool, int maxMessages)
-
-
Method Detail
-
fillCache
protected void fillCache()
-
getQueueName
protected abstract java.lang.String getQueueName()
-
setMyDispatchId
public void setMyDispatchId(int myDispatchId)
-
serviceRequest
public void serviceRequest(Request request)
- Specified by:
serviceRequest
in interfaceRequestService
-
processRequest
public void processRequest(AsyncMessageDeliveryRequest request, boolean hasNext)
-
getServerSessionPool
public javax.jms.ServerSessionPool getServerSessionPool() throws javax.jms.JMSException
- Specified by:
getServerSessionPool
in interfacejavax.jms.ConnectionConsumer
- Throws:
javax.jms.JMSException
-
isClosed
public boolean isClosed()
-
close
public void close() throws javax.jms.JMSException
- Specified by:
close
in interfacejavax.jms.ConnectionConsumer
- Throws:
javax.jms.JMSException
-
-