LISTENER
- public abstract class BrokerSubscription<LISTENER extends javax.jms.MessageListener> extends Thread implements javax.jms.ExceptionListener
Modifier and Type | Class and Description |
---|---|
class |
BrokerSubscription.TopicCouple
topic couple
|
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
protected static int |
ackMode |
protected ArrayList<javax.jms.Connection> |
connections |
protected BrokerSubscription.TopicCouple |
couple |
protected LISTENER |
listener |
protected static org.gcube.common.core.utils.logging.GCUBELog |
logger |
protected ArrayList<String> |
messageSelectors |
protected boolean |
queue |
protected static boolean |
transacted |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
BrokerSubscription()
default constructor
|
Modifier and Type | Method and Description |
---|---|
ArrayList<javax.jms.Connection> |
getConnections()
Get the list of connections
|
BrokerSubscription.TopicCouple |
getCouple()
get the topic info
|
LISTENER |
getListener()
Get the listener associated to the subscription
|
ArrayList<String> |
getMessageSelectors()
Get the message Selectors for this subscription
|
void |
onException(javax.jms.JMSException exce) |
void |
run() |
void |
setConnections(ArrayList<javax.jms.Connection> connections)
Set the list of connections
|
void |
setCouple(BrokerSubscription.TopicCouple couple)
set the topic info
|
void |
setListener(LISTENER listener)
set the listener associated to the connection
|
void |
setMessageSelectors(ArrayList<String> messageSelectors)
Set the message selectors for this subscription
|
abstract void |
setScope(org.gcube.common.core.scope.GCUBEScope scope)
set the scope
|
void |
setupDurableSubscribers(String... selector) |
void |
setupQueueSubscription()
setupQueueSubscription
|
void |
subscribe()
subscribe
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
protected BrokerSubscription.TopicCouple couple
protected LISTENER extends javax.jms.MessageListener listener
protected static org.gcube.common.core.utils.logging.GCUBELog logger
protected ArrayList<javax.jms.Connection> connections
protected static boolean transacted
protected static int ackMode
protected boolean queue
public abstract void setScope(org.gcube.common.core.scope.GCUBEScope scope)
scope
- the scope to setpublic ArrayList<javax.jms.Connection> getConnections()
public void setConnections(ArrayList<javax.jms.Connection> connections)
connections
- the list of connectionspublic void setupDurableSubscribers(String... selector) throws Exception
Exception
public void setupQueueSubscription() throws Exception
Exception
public void onException(javax.jms.JMSException exce)
onException
in interface javax.jms.ExceptionListener
public BrokerSubscription.TopicCouple getCouple()
public void setCouple(BrokerSubscription.TopicCouple couple)
couple
- the topic infopublic LISTENER getListener()
public void setListener(LISTENER listener)
listener
- the listenerpublic ArrayList<String> getMessageSelectors()
Copyright © 2014. All Rights Reserved.