public class UnsolicitedNotifications extends Object
Modifier and Type | Field and Description |
---|---|
private Connection |
connection
Connection to configure unsolicited notifications on.
|
Constructor and Description |
---|
UnsolicitedNotifications(Connection conn)
Creates a new unsolicited notifications.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(UnsolicitedNotificationListener listener)
Adds a listener to receive unsolicited notifications.
|
void |
removeListener(UnsolicitedNotificationListener listener)
Removes a listener from receiving unsolicited notifications.
|
private final Connection connection
public UnsolicitedNotifications(Connection conn)
conn
- connectionpublic void addListener(UnsolicitedNotificationListener listener)
listener
- to receive unsolicited notificationspublic void removeListener(UnsolicitedNotificationListener listener)
listener
- to no longer receive unsolicited notificationsCopyright © 2003-2019 Virginia Tech. All Rights Reserved.