public class NetworkConfigEvent extends AbstractEvent<NetworkConfigEvent.Type,java.lang.Object>
| Modifier and Type | Class and Description |
|---|---|
static class |
NetworkConfigEvent.Type
Type of network configuration events.
|
| Constructor and Description |
|---|
NetworkConfigEvent(NetworkConfigEvent.Type type,
java.lang.Object subject,
java.lang.Class configClass)
Creates an event of a given type and for the specified subject and the
current time.
|
NetworkConfigEvent(NetworkConfigEvent.Type type,
java.lang.Object subject,
java.lang.Class configClass,
long time)
Creates an event of a given type and for the specified subject and time.
|
NetworkConfigEvent(NetworkConfigEvent.Type type,
java.lang.Object subject,
Config config,
Config prevConfig,
java.lang.Class configClass)
Creates an event of a given type and for the specified subject,
previous config and time.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<Config> |
config()
Returns current config.
|
java.lang.Class |
configClass()
Returns the class of configuration that has been changed.
|
java.util.Optional<Config> |
prevConfig()
Returns previous config.
|
java.lang.String |
toString() |
subject, time, typepublic NetworkConfigEvent(NetworkConfigEvent.Type type, java.lang.Object subject, java.lang.Class configClass)
type - event typesubject - event subjectconfigClass - configuration classpublic NetworkConfigEvent(NetworkConfigEvent.Type type, java.lang.Object subject, java.lang.Class configClass, long time)
type - device event typesubject - event subjectconfigClass - configuration classtime - occurrence timepublic NetworkConfigEvent(NetworkConfigEvent.Type type, java.lang.Object subject, Config config, Config prevConfig, java.lang.Class configClass)
type - device event typesubject - event subjectconfigClass - configuration classconfig - current configprevConfig - previous configpublic java.lang.Class configClass()
public java.util.Optional<Config> config()
public java.util.Optional<Config> prevConfig()
public java.lang.String toString()
toString in class AbstractEvent<NetworkConfigEvent.Type,java.lang.Object>