|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atomikos.jms.MessageConsumerSessionPool
public abstract class MessageConsumerSessionPool
Common functionality for pooled listener sessions.
Constructor Summary | |
---|---|
protected |
MessageConsumerSessionPool()
|
Method Summary | |
---|---|
protected abstract MessageConsumerSession |
createSession()
|
protected AbstractConnectionFactoryBean |
getAbstractConnectionFactoryBean()
|
boolean |
getDaemonThreads()
Tests whether threads are daemon threads. |
protected javax.jms.Destination |
getDestination()
|
javax.jms.ExceptionListener |
getExceptionListener()
Gets the exception listener (if any). |
javax.jms.MessageListener |
getMessageListener()
Get the message listener if any. |
String |
getMessageSelector()
Get the message selector (if any) |
protected abstract boolean |
getNoLocal()
|
boolean |
getNotifyListenerOnClose()
Getter to check whether the listener is notified on close. |
int |
getPoolSize()
Get the size of the pool. |
protected abstract String |
getSubscriberName()
|
int |
getTransactionTimeout()
Get the transaction timeout. |
String |
getUser()
Get the user for connecting, or null if the default user should be used. |
protected void |
setAbstractConnectionFactoryBean(AbstractConnectionFactoryBean bean)
|
void |
setDaemonThreads(boolean value)
Sets whether threads should be daemon threads or not (optional). |
protected void |
setDestination(javax.jms.Destination dest)
|
void |
setExceptionListener(javax.jms.ExceptionListener exceptionListener)
Sets the exception listener. |
void |
setMessageListener(javax.jms.MessageListener listener)
Set the message listener to use (required). |
void |
setMessageSelector(String selector)
Set the message selector to use (optional). |
void |
setNotifyListenerOnClose(boolean b)
Set whether the listener should be notified of close events on the pool (optional). |
void |
setPassword(String string)
Set the password if explicit authentication is needed (optional). |
void |
setPoolSize(int i)
Sets the size of the session pool. |
void |
setTransactionTimeout(int i)
Set the transaction timeout in seconds (optional). |
void |
setUser(String string)
Set the user to use for explicit authentication (optional). |
void |
start()
Start listening for messages. |
void |
stop()
Stop listening for messages. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected MessageConsumerSessionPool()
Method Detail |
---|
protected void setAbstractConnectionFactoryBean(AbstractConnectionFactoryBean bean)
protected AbstractConnectionFactoryBean getAbstractConnectionFactoryBean()
protected javax.jms.Destination getDestination()
protected void setDestination(javax.jms.Destination dest)
public void setDaemonThreads(boolean value)
value
- If true then threads will be daemon threads.public boolean getDaemonThreads()
public javax.jms.MessageListener getMessageListener()
public int getTransactionTimeout()
public String getUser()
public void setMessageListener(javax.jms.MessageListener listener)
listener
- public void setPassword(String string)
string
- public void setTransactionTimeout(int i)
i
- public void setUser(String string)
string
- public String getMessageSelector()
public void setMessageSelector(String selector)
selector
- public int getPoolSize()
public void setPoolSize(int i)
i
- public javax.jms.ExceptionListener getExceptionListener()
public void setExceptionListener(javax.jms.ExceptionListener exceptionListener)
exceptionListener
- protected abstract MessageConsumerSession createSession()
protected abstract boolean getNoLocal()
protected abstract String getSubscriberName()
public void start() throws javax.jms.JMSException
javax.jms.JMSException
public void stop()
public boolean getNotifyListenerOnClose()
public void setNotifyListenerOnClose(boolean b)
b
- If true, then the listener will receive a null message if the
pool is closed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |