public interface Connection
extends javax.jms.Connection
| Modifier and Type | Method and Description |
|---|---|
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) |
long getMaximumChannelCount()
throws javax.jms.JMSException
javax.jms.JMSExceptionvoid setConnectionListener(ConnectionListener listener)
ConnectionListener getConnectionListener()
Session createSession(boolean transacted, int acknowledgeMode, int prefetch) throws javax.jms.JMSException
transacted - acknowledgeMode - prefetch - the maximum number of messages to buffer in the client. This
applies as a total across all consumersjavax.jms.JMSExceptionSession createSession(boolean transacted, int acknowledgeMode, int prefetchHigh, int prefetchLow) throws javax.jms.JMSException
transacted - acknowledgeMode - prefetchHigh - the maximum number of messages to buffer in the client.
This applies as a total across all consumersprefetchLow - the number of messages that must be in the buffer in the client to renable message flow.
This applies as a total across all consumersjavax.jms.JMSExceptionCopyright © 2006–2019 The Apache Software Foundation. All rights reserved.