|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.mq.Connection (src) org.jboss.mq.SpyConnection
This class implements javax.jms.QueueConnection and javax.jms.TopicConnection
Field Summary |
Fields inherited from class org.jboss.mq.Connection (src) |
clientID, clientILService, clockDaemon, closing, connectionToken, destinationSubscriptions, modeStop, pingPeriod, ponged, serverIL, subscriptions, temps |
Constructor Summary | |
SpyConnection(GenericConnectionFactory (src) gcf)
Create a new SpyConnection |
|
SpyConnection(java.lang.String userId,
java.lang.String password,
GenericConnectionFactory (src) gcf)
Create a new SpyConnection |
Method Summary | |
ConnectionConsumer (src) |
createConnectionConsumer(Destination (src) destination,
java.lang.String messageSelector,
ServerSessionPool (src) sessionPool,
int maxMessages)
Creates a connection consumer for this connection (optional operation). |
ConnectionConsumer (src) |
createConnectionConsumer(Queue (src) queue,
java.lang.String messageSelector,
ServerSessionPool (src) sessionPool,
int maxMessages)
Creates a connection consumer for this connection (optional operation). |
ConnectionConsumer (src) |
createConnectionConsumer(Topic (src) topic,
java.lang.String messageSelector,
ServerSessionPool (src) sessionPool,
int maxMessages)
Creates a connection consumer for this connection (optional operation). |
ConnectionConsumer (src) |
createDurableConnectionConsumer(Topic (src) topic,
java.lang.String subscriptionName,
java.lang.String messageSelector,
ServerSessionPool (src) sessionPool,
int maxMessages)
Create a durable connection consumer for this connection (optional operation). |
QueueSession (src) |
createQueueSession(boolean transacted,
int acknowledgeMode)
Creates a QueueSession object. |
Session (src) |
createSession(boolean transacted,
int acknowledgeMode)
Creates a Session object. |
TopicSession (src) |
createTopicSession(boolean transacted,
int acknowledgeMode)
Creates a TopicSession object. |
Methods inherited from class org.jboss.mq.Connection (src) |
askForAnID, askForAnID, asynchClose, asynchDeleteTemporaryDestination, asynchDeliver, asynchFailure, asynchPong, authenticate, checkClientID, close, deleteTemporaryDestination, doStop, getClientID, getExceptionListener, getMetaData, getServerIL, getThreadGroup, send, send, setClientID, setExceptionListener, start, startILService, stop, stopILService, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.jms.Connection (src) |
close, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stop |
Constructor Detail |
public SpyConnection(java.lang.String userId, java.lang.String password, GenericConnectionFactory (src) gcf) throws JMSException (src)
userId
- the userpassword
- the passwordgcf
- the constructing class
JMSException (src)
- for any errorpublic SpyConnection(GenericConnectionFactory (src) gcf) throws JMSException (src)
gcf
- the constructing class
JMSException (src)
- for any errorMethod Detail |
public ConnectionConsumer (src) createConnectionConsumer(Destination (src) destination, java.lang.String messageSelector, ServerSessionPool (src) sessionPool, int maxMessages) throws JMSException (src)
Connection (src)
createConnectionConsumer
in interface Connection (src)
destination
- the destination to accessmessageSelector
- only messages with properties matching the
message selector expression are delivered. A value of null or
an empty string indicates that there is no message selector
for the message consumer.sessionPool
- the server session pool to associate with this
connection consumermaxMessages
- the maximum number of messages that can be
assigned to a server session at one time
JMSException (src)
- if the Connection
object fails
to create a connection consumer due to some
internal error or invalid arguments for
sessionPool
and
messageSelector
.ConnectionConsumer
(src) public Session (src) createSession(boolean transacted, int acknowledgeMode) throws JMSException (src)
Connection (src)
Session
object.
createSession
in interface Connection (src)
transacted
- indicates whether the session is transactedacknowledgeMode
- indicates whether the consumer or the
client will acknowledge any messages it receives; ignored if the session
is transacted. Legal values are Session.AUTO_ACKNOWLEDGE
,
Session.CLIENT_ACKNOWLEDGE
, and
Session.DUPS_OK_ACKNOWLEDGE
.
JMSException (src)
- if the Connection
object fails
to create a session due to some internal error or
lack of support for the specific transaction
and acknowledgement mode.Session.AUTO_ACKNOWLEDGE
,
Session.CLIENT_ACKNOWLEDGE
,
Session.DUPS_OK_ACKNOWLEDGE
public TopicSession (src) createTopicSession(boolean transacted, int acknowledgeMode) throws JMSException (src)
TopicConnection (src)
TopicSession
object.
createTopicSession
in interface TopicConnection (src)
transacted
- indicates whether the session is transactedacknowledgeMode
- indicates whether the consumer or the
client will acknowledge any messages it receives; ignored if the session
is transacted. Legal values are Session.AUTO_ACKNOWLEDGE
,
Session.CLIENT_ACKNOWLEDGE
, and
Session.DUPS_OK_ACKNOWLEDGE
.
JMSException (src)
- if the TopicConnection
object fails
to create a session due to some internal error or
lack of support for the specific transaction
and acknowledgement mode.Session.AUTO_ACKNOWLEDGE
,
Session.CLIENT_ACKNOWLEDGE
,
Session.DUPS_OK_ACKNOWLEDGE
public ConnectionConsumer (src) createConnectionConsumer(Topic (src) topic, java.lang.String messageSelector, ServerSessionPool (src) sessionPool, int maxMessages) throws JMSException (src)
TopicConnection (src)
createConnectionConsumer
in interface TopicConnection (src)
topic
- the topic to accessmessageSelector
- only messages with properties matching the
message selector expression are delivered. A value of null or
an empty string indicates that there is no message selector
for the message consumer.sessionPool
- the server session pool to associate with this
connection consumermaxMessages
- the maximum number of messages that can be
assigned to a server session at one time
JMSException (src)
- if the TopicConnection
object fails
to create a connection consumer due to some
internal error or invalid arguments for
sessionPool
and
messageSelector
.ConnectionConsumer
(src) public ConnectionConsumer (src) createDurableConnectionConsumer(Topic (src) topic, java.lang.String subscriptionName, java.lang.String messageSelector, ServerSessionPool (src) sessionPool, int maxMessages) throws JMSException (src)
TopicConnection (src)
createDurableConnectionConsumer
in interface TopicConnection (src)
topic
- the topic to accesssubscriptionName
- durable subscription namemessageSelector
- only messages with properties matching the
message selector expression are delivered. A value of null or
an empty string indicates that there is no message selector
for the message consumer.sessionPool
- the server session pool to associate with this
durable connection consumermaxMessages
- the maximum number of messages that can be
assigned to a server session at one time
JMSException (src)
- if the TopicConnection
object fails
to create a connection consumer due to some
internal error or invalid arguments for
sessionPool
and
messageSelector
.ConnectionConsumer
(src) public ConnectionConsumer (src) createConnectionConsumer(Queue (src) queue, java.lang.String messageSelector, ServerSessionPool (src) sessionPool, int maxMessages) throws JMSException (src)
QueueConnection (src)
createConnectionConsumer
in interface QueueConnection (src)
queue
- the queue to accessmessageSelector
- only messages with properties matching the
message selector expression are delivered. A value of null or
an empty string indicates that there is no message selector
for the message consumer.sessionPool
- the server session pool to associate with this
connection consumermaxMessages
- the maximum number of messages that can be
assigned to a server session at one time
JMSException (src)
- if the QueueConnection
object fails
to create a connection consumer due to some
internal error or invalid arguments for
sessionPool
and
messageSelector
.ConnectionConsumer
(src) public QueueSession (src) createQueueSession(boolean transacted, int acknowledgeMode) throws JMSException (src)
QueueConnection (src)
QueueSession
object.
createQueueSession
in interface QueueConnection (src)
transacted
- indicates whether the session is transactedacknowledgeMode
- indicates whether the consumer or the
client will acknowledge any messages it receives; ignored if the session
is transacted. Legal values are Session.AUTO_ACKNOWLEDGE
,
Session.CLIENT_ACKNOWLEDGE
, and
Session.DUPS_OK_ACKNOWLEDGE
.
JMSException (src)
- if the QueueConnection
object fails
to create a session due to some internal error or
lack of support for the specific transaction
and acknowledgement mode.Session.AUTO_ACKNOWLEDGE
,
Session.CLIENT_ACKNOWLEDGE
,
Session.DUPS_OK_ACKNOWLEDGE
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |