|
||||||||||
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 MessageListener>
Nested Class Summary | |
---|---|
class |
BrokerSubscription.TopicCouple
topic couple |
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
BrokerSubscription()
default constructor |
Method Summary | |
---|---|
java.util.ArrayList<Connection> |
getConnections()
Get the list of connections |
BrokerSubscription.TopicCouple |
getCouple()
get the topic info |
LISTENER |
getListener()
Get the listener associated to the subscription |
java.util.ArrayList<java.lang.String> |
getMessageSelectors()
Get the message Selectors for this subscription |
void |
onException(JMSException exce)
|
void |
run()
|
void |
setConnections(java.util.ArrayList<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(java.util.ArrayList<java.lang.String> messageSelectors)
Set the message selectors for this subscription |
abstract void |
setScope(GCUBEScope scope)
set the scope |
void |
setupDurableSubscribers(java.lang.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 |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BrokerSubscription()
Method Detail |
---|
public abstract void setScope(GCUBEScope scope)
scope
- the scope to setpublic void subscribe() throws java.lang.Exception
java.lang.Exception
public java.util.ArrayList<Connection> getConnections()
public void setConnections(java.util.ArrayList<Connection> connections)
connections
- the list of connectionspublic void setupDurableSubscribers(java.lang.String... selector) throws java.lang.Exception
java.lang.Exception
public void setupQueueSubscription() throws java.lang.Exception
java.lang.Exception
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void onException(JMSException exce)
public BrokerSubscription.TopicCouple getCouple()
public void setCouple(BrokerSubscription.TopicCouple couple)
couple
- the topic infopublic LISTENER getListener()
public void setListener(LISTENER listener)
listener
- the listenerpublic java.util.ArrayList<java.lang.String> getMessageSelectors()
public void setMessageSelectors(java.util.ArrayList<java.lang.String> messageSelectors)
messageSelectors
- the message selector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |