public class SyncDispatching extends java.lang.Object implements IThreadDispatcherProvider
Constructor and Description |
---|
SyncDispatching()
Constructs dispatching where each getDispatcher() will return new instance of the dispatcher.
|
SyncDispatching(boolean isDispatcherShared)
Constructs the dispatcher provider.
|
Modifier and Type | Method and Description |
---|---|
IThreadDispatcher |
getDispatcher()
Returns dispatcher that queues callback methods and processes them one by one.
|
public SyncDispatching()
public SyncDispatching(boolean isDispatcherShared)
isDispatcherShared
- true - getDispatcher() will return always the same instance of the dispatcher. It means all dispatchers returned from
getDispatcher() will sync incoming methods using the same queue. public IThreadDispatcher getDispatcher()
getDispatcher
in interface IThreadDispatcherProvider