|
BEA Systems, Inc. | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
A WLConnection provides fields and methods that are not supported by javax.jms.Connection.
Connection,
QueueConnection,
TopicConnection| Method Summary | |
long |
getReconnectBlockingMillis()
|
String |
getReconnectPolicy()
|
long |
getTotalReconnectPeriodMillis()
|
void |
setReconnectBlockingMillis(long timeout)
|
void |
setReconnectPolicy(String reconnectPolicy)
Control what happens to the connection when the server connection fails. |
void |
setTotalReconnectPeriodMillis(long timeout)
|
| Methods inherited from interface javax.jms.QueueConnection |
createConnectionConsumer, createQueueSession |
| Methods inherited from interface javax.jms.Connection |
close, createConnectionConsumer, createDurableConnectionConsumer, createSession, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stop |
| Methods inherited from interface javax.jms.TopicConnection |
createConnectionConsumer, createDurableConnectionConsumer, createTopicSession |
| Method Detail |
public long getReconnectBlockingMillis()
setReconnectBlockingMillis(long)public String getReconnectPolicy()
setReconnectPolicy(java.lang.String)public long getTotalReconnectPeriodMillis()
setTotalReconnectPeriodMillis(long)
public void setReconnectBlockingMillis(long timeout)
throws IllegalArgumentException
timeout - timeout is the number of milliseconds JMS operations shall wait trying
to reconnect to a disconnected server before throwing a JMSException.
When timeout is zero, the reconnect starts but this call does not block waiting for the reconnected objects.
When timeout is -1, the call blocks as long as reconnects are possible. For example, send() can block until close() is called, and send() will throw a JMSException.
IllegalArgumentExcaption - is thrown when timeout is less than -1.
IllegalArgumentExceptiongetReconnectBlockingMillis()
public void setReconnectPolicy(String reconnectPolicy)
throws IllegalArgumentException
IllegalArgumentException - when the argument is not:
weblogic.jms.common.JMSConstants.RECONNECT_POLICY_NONE
weblogic.jms.common.JMSConstants.RECONNECT_POLICY_PRODUCER
weblogic.jms.common.JMSConstants.RECONNECT_POLICY_ALLweblogic.jms.common.JMSConstants.RECONNECT_POLICY_NONE,
weblogic.jms.common.JMSConstants.RECONNECT_POLICY_PRODUCER,
weblogic.jms.common.JMSConstants.RECONNECT_POLICY_ALL
public void setTotalReconnectPeriodMillis(long timeout)
throws IllegalArgumentException
timeout - timeout is the number of milliseconds JMS reconnect timers will be
permitted to reconnect a disconnected server.
When timeout is -1, there is no limit. Reconnection timers will always be scheduled until close() is called.
IllegalArgumentExcaption - is thrown when timeout is less than -1.
IllegalArgumentExceptiongetTotalReconnectPeriodMillis()
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs91 Copyright 2005 BEA Systems Inc. |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||