public class CustomSubscription extends BrokerSubscription
BrokerSubscription.TopicCouple
Thread.State, Thread.UncaughtExceptionHandler
ackMode, connections, couple, listener, logger, messageSelectors, queue, transacted
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
CustomSubscription()
Default subscription
|
Modifier and Type | Method and Description |
---|---|
void |
setScope(org.gcube.common.core.scope.GCUBEScope scope)
set the scope
|
void |
setupCustomDurableSubscriber(String topicName,
String brokerEpr,
javax.jms.MessageListener listener,
String... selector)
Start a Subscriber for the specified topic using the given broker
|
getConnections, getCouple, getListener, getMessageSelectors, onException, run, setConnections, setCouple, setListener, setMessageSelectors, setupDurableSubscribers, setupQueueSubscription, 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
public void setupCustomDurableSubscriber(String topicName, String brokerEpr, javax.jms.MessageListener listener, String... selector) throws Exception
topicName
- the topic NamebrokerEpr
- the brokerEprlistener
- the Listenerselector
- the message selectorException
public void setScope(org.gcube.common.core.scope.GCUBEScope scope)
BrokerSubscription
setScope
in class BrokerSubscription
scope
- the scope to setCopyright © 2014. All Rights Reserved.