Package | Description |
---|---|
com.tailf.notif |
Package for subscription of asynchronous events.
|
Modifier and Type | Method and Description |
---|---|
NotificationType |
Notification.getNotificationType() |
static NotificationType |
NotificationType.valueOf(int i) |
static NotificationType |
NotificationType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NotificationType[] |
NotificationType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Constructor and Description |
---|
Notif(Socket socket,
EnumSet<NotificationType> eventTypes)
Same functionality as for Notif(socket, eventTypes, cfg)
except that no extra configuration is expected to be set in eventTypes.
|
Notif(Socket socket,
EnumSet<NotificationType> eventTypes,
int heartbeatInterval)
Same functionality as for Notif(socket, eventTypes, cfg)
except that only heartbeat notifications are expected to require
to be configured
Since the ConfD/NCS daemon expects initialization within
5 seconds after a new socket is established this constructor should be
called directly for a new socket.
|
Notif(Socket socket,
EnumSet<NotificationType> eventTypes,
int heartbeatInterval,
int healthCheckInterval)
Same functionality as for Notif(socket, eventTypes, cfg)
except that only heartbeat and healtcheck notifications
are expected to require to be configured.
|
Notif(Socket socket,
EnumSet<NotificationType> eventTypes,
NotificationCfg cfg)
Creates a notification instance.
|