org.apache.qpid.jms
Interface Connection

All Superinterfaces:
Connection

public interface Connection
extends Connection


Method Summary
 Session createSession(boolean transacted, int acknowledgeMode, int prefetch)
          Create a session specifying the prefetch limit of messages.
 Session createSession(boolean transacted, int acknowledgeMode, int prefetchHigh, int prefetchLow)
          Create a session specifying the prefetch limit of messages.
 ConnectionListener getConnectionListener()
          Get the connection listener that has been registered with this connection, if any
 long getMaximumChannelCount()
           
 void setConnectionListener(ConnectionListener listener)
           
 
Methods inherited from interface javax.jms.Connection
close, createConnectionConsumer, createDurableConnectionConsumer, createSession, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stop
 

Method Detail

getMaximumChannelCount

long getMaximumChannelCount()
                            throws JMSException
Returns:
the maximum number of sessions supported by this Connection
Throws:
JMSException

setConnectionListener

void setConnectionListener(ConnectionListener listener)

getConnectionListener

ConnectionListener getConnectionListener()
Get the connection listener that has been registered with this connection, if any

Returns:
the listener or null if none has been set

createSession

Session createSession(boolean transacted,
                      int acknowledgeMode,
                      int prefetch)
                      throws JMSException
Create a session specifying the prefetch limit of messages.

Parameters:
transacted -
acknowledgeMode -
prefetch - the maximum number of messages to buffer in the client. This applies as a total across all consumers
Returns:
Throws:
JMSException

createSession

Session createSession(boolean transacted,
                      int acknowledgeMode,
                      int prefetchHigh,
                      int prefetchLow)
                      throws JMSException
Create a session specifying the prefetch limit of messages.

Parameters:
transacted -
acknowledgeMode -
prefetchHigh - the maximum number of messages to buffer in the client. This applies as a total across all consumers
prefetchLow - the number of messages that must be in the buffer in the client to renable message flow. This applies as a total across all consumers
Returns:
Throws:
JMSException


Licensed to the Apache Software Foundation