public interface BusConnection extends Activatable
Activatable.State
Modifier and Type | Method and Description |
---|---|
SocketOptions |
getOptions()
Returns the current configuration of the connection.
|
boolean |
isActiveShutdown()
Indicates whether the connection is currently performing an active
shutdown as a consequence of calling
shutdown() . |
NotificationType.Notification |
readNotification()
Reads a notification from the connection.
|
void |
sendNotification(NotificationType.Notification notification)
Sends a notification over the connection.
|
void |
shutdown()
This method starts and orderly shutdown of the connection.
|
activate, deactivate, isActive
void sendNotification(NotificationType.Notification notification) throws IOException
notification
- the notification to send. Must be complete so that it can be
serialized.IOException
- error sending the notificationNotificationType.Notification readNotification() throws IOException
IOException
- communication errorSocketOptions getOptions()
void shutdown() throws IOException
Activatable.deactivate()
for this procedure to succeed. Should
be callable multiple times without raising an error. Calls after the
first are usually ignored.IOException
- error indicating the shutdown due to socket writing problemsboolean isActiveShutdown()
shutdown()
.true
in case of active shutdown, else
false
Copyright © 2018 CoR-Lab. All rights reserved.