SUB_T
- the interface implemented by the subscriberspublic interface Dispatcher<SUB_T>
Modifier and Type | Method and Description |
---|---|
void |
add_async(SUB_T sub)
Adds a new subscriber to the dispatcher using a asynchronous
subscription.
|
void |
add_sync(SUB_T sub)
Adds a new subscriber to the dispatcher using a synchronous
subscription.
|
void |
remove(SUB_T sub)
Removes a previously registered subscriber from the dispatcher.
|
void add_sync(SUB_T sub)
sub
- the subscriber, cannot be null
void add_async(SUB_T sub)
sub
- the subscriber, cannot be null
void remove(SUB_T sub)
sub
- the subscriber to remove, cannot be null
Copyright © 2015. All rights reserved.