public interface Dispatcher
Dispatcher interface and
supplying an instance in InitializationData when
initializing a communicator.
For example, you can use this dispatching facility to ensure that all invocations and callbacks are dispatched in a GUI event loop thread so that it is safe to invoke directly on GUI objects.
| Modifier and Type | Method and Description |
|---|---|
void |
dispatch(java.lang.Runnable runnable,
Connection con)
Responsible for dispatching an invocation or AMI callback.
|
void dispatch(java.lang.Runnable runnable,
Connection con)
run on the
supplied Runnable object.runnable - The object encapsulating the invocation or
callback to be dispatched.con - The connection associated with the dispatch.