|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.gcube.datatransfer.common.messaging.BrokerSubscription<LISTENER>
LISTENER
- public abstract class BrokerSubscription<LISTENER extends javax.jms.MessageListener>
Nested Class Summary | |
---|---|
class |
BrokerSubscription.DestinationPair
destination pair |
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 LISTENER |
listener
|
protected ArrayList<String> |
messageSelectors
|
protected BrokerSubscription.DestinationPair |
pair
|
protected String |
subscriberEndpoint
|
protected static boolean |
transacted
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
BrokerSubscription(String subscriberEndpoint)
default constructor |
Method Summary | |
---|---|
ArrayList<javax.jms.Connection> |
getConnections()
Get the list of connections |
BrokerSubscription.DestinationPair |
getDestinationPair()
get the DestinationPair 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 |
setDestinationPair(BrokerSubscription.DestinationPair pair)
set the DestinationPair 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 |
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 String subscriberEndpoint
protected BrokerSubscription.DestinationPair pair
protected ArrayList<String> messageSelectors
protected LISTENER extends javax.jms.MessageListener listener
protected ArrayList<javax.jms.Connection> connections
protected static boolean transacted
protected static int ackMode
Constructor Detail |
---|
public BrokerSubscription(String subscriberEndpoint)
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 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.DestinationPair getDestinationPair()
public void setDestinationPair(BrokerSubscription.DestinationPair pair)
pair
- the DestinationPair 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 |