primarySubscribe
public <T> BrokerClientSubscription<T> primarySubscribe(String topic,
Class<T> clazz,
BrokerClientCallback<T> callback)
Subscribe to message broker on the primary node.
CtxEventListener
, ContextHandleAware
, HandleAware
, Ready
, ReadyListener
BrokerClient(NodeId selfNode,
boolean isPrimary)
<T> BrokerClientSubscription<T>
aliasSubscribe(String alias,
String topic,
Class<T> clazz,
BrokerClientCallback<T> callback)
<T> BrokerClientSubscription<T>
localSubscribe(String topic,
Class<T> clazz,
BrokerClientCallback<T> callback)
<T> BrokerClientSubscription<T>
nodeSubscribe(NodeId node,
String topic,
Class<T> clazz,
BrokerClientCallback<T> callback)
<T> BrokerClientSubscription<T>
primarySubscribe(String topic,
Class<T> clazz,
BrokerClientCallback<T> callback)
void
unsubscribe(BrokerClientSubscription<?> subscription)
getHandle, getHandlePrefix
getReady, onBeanReady, onDependenciesReady
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onCtxAutowiringCompleted, onCtxDestroyed, onCtxPhaseCompleted
addHandleChild, getName, getPath
onDependenciesGroupReady
selfNode
- the node we're running onisPrimary
- true if the node we're running on is the primary nodesubscription
- the subscription returned from a subscription call.