org.gcube.messaging.common.consumer
Class CustomSubscription
java.lang.Object
java.lang.Thread
org.gcube.messaging.common.consumer.BrokerSubscription
org.gcube.messaging.common.consumer.CustomSubscription
- All Implemented Interfaces:
- Runnable, javax.jms.ExceptionListener
public class CustomSubscription
- extends BrokerSubscription
- Author:
- Andrea Manzi(CERN)
Method Summary |
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 |
Methods inherited from class org.gcube.messaging.common.consumer.BrokerSubscription |
getConnections, getCouple, getListener, getMessageSelectors, onException, run, setConnections, setCouple, setListener, setMessageSelectors, setupDurableSubscribers, setupQueueSubscription, 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 |
CustomSubscription
public CustomSubscription()
- Default subscription
setupCustomDurableSubscriber
public void setupCustomDurableSubscriber(String topicName,
String brokerEpr,
javax.jms.MessageListener listener,
String... selector)
throws Exception
- Start a Subscriber for the specified topic using the given broker
- Parameters:
topicName
- the topic NamebrokerEpr
- the brokerEprlistener
- the Listenerselector
- the message selector
- Throws:
Exception
setScope
public void setScope(org.gcube.common.core.scope.GCUBEScope scope)
- Description copied from class:
BrokerSubscription
- set the scope
- Specified by:
setScope
in class BrokerSubscription
- Parameters:
scope
- the scope to set
Copyright © 2014. All Rights Reserved.