SUB_T
- the type of subscription interfacepublic class ProxyLocalDispatcher<SUB_T> extends LocalDispatcher<SUB_T>
LocalDispatcher.dispatch(DispatcherOp)
to publish, a
proxy to SUB_T
can be obtained using
proxy()
and the method can be called
directly on the proxy. The invocation will be forwarded to all subscriptions
just like if dispatch
had been called. Differently from
LocalDispatcher
, SUB_T
must be an interface
for this proxy to work.Constructor and Description |
---|
ProxyLocalDispatcher(Class<SUB_T> sub_class)
Creates a new proxy dispatcher.
|
Modifier and Type | Method and Description |
---|---|
SUB_T |
proxy()
Obtains the proxy to publish notifications to subscribers.
|
add_async, add_sync, dispatch, remove
public SUB_T proxy()
Copyright © 2015. All rights reserved.