org.apache.qpid.jms
Interface Session

All Superinterfaces:
Runnable, Session

public interface Session
extends Session


Field Summary
static int NO_ACKNOWLEDGE
          Indicates that no client acknowledgements are required.
static int PRE_ACKNOWLEDGE
          Pre acknowledge means that an ack is sent per message but sent before user code has processed the message (i.e.
 
Fields inherited from interface javax.jms.Session
AUTO_ACKNOWLEDGE, CLIENT_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE, SESSION_TRANSACTED
 
Method Summary
 MessageConsumer createConsumer(Destination destination, int prefetch, boolean noLocal, boolean exclusive, String selector)
           
 MessageConsumer createConsumer(Destination destination, int prefetchHigh, int prefetchLow, boolean noLocal, boolean exclusive, String selector)
           
 MessageProducer createProducer(Destination destination, boolean immediate)
          Create a producer
 MessageProducer createProducer(Destination destination, boolean mandatory, boolean immediate)
          Create a producer
 int getDefaultPrefetch()
           
 int getDefaultPrefetchHigh()
           
 int getDefaultPrefetchLow()
           
 org.apache.qpid.framing.AMQShortString getDefaultQueueExchangeName()
           
 org.apache.qpid.framing.AMQShortString getDefaultTopicExchangeName()
           
 org.apache.qpid.framing.AMQShortString getTemporaryQueueExchangeName()
           
 org.apache.qpid.framing.AMQShortString getTemporaryTopicExchangeName()
           
 
Methods inherited from interface javax.jms.Session
close, commit, createBrowser, createBrowser, createBytesMessage, createConsumer, createConsumer, createConsumer, createDurableSubscriber, createDurableSubscriber, createMapMessage, createMessage, createObjectMessage, createObjectMessage, createProducer, createQueue, createStreamMessage, createTemporaryQueue, createTemporaryTopic, createTextMessage, createTextMessage, createTopic, getAcknowledgeMode, getMessageListener, getTransacted, recover, rollback, run, setMessageListener, unsubscribe
 

Field Detail

NO_ACKNOWLEDGE

static final int NO_ACKNOWLEDGE
Indicates that no client acknowledgements are required. Broker assumes that once it has delivered a message packet successfully it is acknowledged.

See Also:
Constant Field Values

PRE_ACKNOWLEDGE

static final int PRE_ACKNOWLEDGE
Pre acknowledge means that an ack is sent per message but sent before user code has processed the message (i.e. before the onMessage() call or the receive() method has returned).

See Also:
Constant Field Values
Method Detail

createConsumer

MessageConsumer createConsumer(Destination destination,
                               int prefetch,
                               boolean noLocal,
                               boolean exclusive,
                               String selector)
                               throws JMSException
Throws:
JMSException

createConsumer

MessageConsumer createConsumer(Destination destination,
                               int prefetchHigh,
                               int prefetchLow,
                               boolean noLocal,
                               boolean exclusive,
                               String selector)
                               throws JMSException
Throws:
JMSException

getDefaultPrefetch

int getDefaultPrefetch()
Returns:
the prefetch value used by default for consumers created on this session.

getDefaultPrefetchHigh

int getDefaultPrefetchHigh()
Returns:
the High water prefetch value used by default for consumers created on this session.

getDefaultPrefetchLow

int getDefaultPrefetchLow()
Returns:
the Low water prefetch value used by default for consumers created on this session.

createProducer

MessageProducer createProducer(Destination destination,
                               boolean mandatory,
                               boolean immediate)
                               throws JMSException
Create a producer

Parameters:
destination -
mandatory - the value of the mandatory flag used by default on the producer
immediate - the value of the immediate flag used by default on the producer
Returns:
Throws:
JMSException

createProducer

MessageProducer createProducer(Destination destination,
                               boolean immediate)
                               throws JMSException
Create a producer

Parameters:
destination -
immediate - the value of the immediate flag used by default on the producer
Returns:
Throws:
JMSException

getTemporaryTopicExchangeName

org.apache.qpid.framing.AMQShortString getTemporaryTopicExchangeName()

getDefaultQueueExchangeName

org.apache.qpid.framing.AMQShortString getDefaultQueueExchangeName()

getDefaultTopicExchangeName

org.apache.qpid.framing.AMQShortString getDefaultTopicExchangeName()

getTemporaryQueueExchangeName

org.apache.qpid.framing.AMQShortString getTemporaryQueueExchangeName()


Licensed to the Apache Software Foundation