| Modifier and Type | Class and Description |
|---|---|
class |
BrokerSubscription.DestinationPair
destination pair
|
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
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 |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
BrokerSubscription(String subscriberEndpoint)
default constructor
|
| Modifier and Type | Method and Description |
|---|---|
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
|
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, yieldprotected String subscriberEndpoint
protected BrokerSubscription.DestinationPair pair
protected LISTENER extends javax.jms.MessageListener listener
protected ArrayList<javax.jms.Connection> connections
protected static boolean transacted
protected static int ackMode
public BrokerSubscription(String subscriberEndpoint)
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 setupQueueSubscription()
throws Exception
Exceptionpublic void onException(javax.jms.JMSException exce)
onException in interface javax.jms.ExceptionListenerpublic 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()
Copyright © 2014. All Rights Reserved.