public interface Bus extends Activatable
Modifier and Type | Interface and Description |
---|---|
static interface |
Bus.NotificationReceiver
Interfaces for observers of
Bus instances that want to
asynchronously receive incoming notifications. |
Activatable.State
Modifier and Type | Method and Description |
---|---|
void |
addNotificationReceiver(Bus.NotificationReceiver receiver)
Registers a local observer for notifications.
|
SocketOptions |
getSocketOptions()
Returns the current socket configuration of the bus.
|
URI |
getTransportUri()
Return the URI describing the transport manifested by this bus.
|
void |
handleOutgoing(NotificationType.Notification notification)
Handles a notification to be sent over the bus.
|
void |
removeNotificationReceiver(Bus.NotificationReceiver receiver)
Removes a local observer for notifications if registered before.
|
activate, deactivate, isActive
SocketOptions getSocketOptions()
void handleOutgoing(NotificationType.Notification notification) throws RSBException
Bus.NotificationReceiver
and to all registered BusConnection
s.notification
- the notification to distributeRSBException
- error during dispatchingvoid addNotificationReceiver(Bus.NotificationReceiver receiver)
receiver
- the receiver to registervoid removeNotificationReceiver(Bus.NotificationReceiver receiver)
receiver
- the receiver to removeURI getTransportUri()
null
IllegalStateException
- instance is in wrong state to prepare the URICopyright © 2018 CoR-Lab. All rights reserved.