|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.gcube.messaging.common.consumer.BrokerSubscription<LISTENER>
LISTENER
- public abstract class BrokerSubscription<LISTENER extends javax.jms.MessageListener>
Nested Class Summary | |
---|---|
class |
BrokerSubscription.TopicCouple
topic couple |
Nested classes/interfaces inherited from class java.lang.Thread |
---|
Thread.State, Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
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
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
BrokerSubscription()
default constructor |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, 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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected BrokerSubscription.TopicCouple couple
protected ArrayList<String> messageSelectors
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
Constructor Detail |
---|
public BrokerSubscription()
Method Detail |
---|
public abstract void setScope(org.gcube.common.core.scope.GCUBEScope scope)
scope
- the scope to setpublic void subscribe() throws Exception
Exception
public 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 run()
run
in interface Runnable
run
in class Thread
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()
public void setMessageSelectors(ArrayList<String> messageSelectors)
messageSelectors
- the message selector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |