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