T - the vent typepublic abstract class BaseConfigEvent<T> extends Object implements ConfigEvent<T>
| Modifier and Type | Field and Description |
|---|---|
protected T |
paylod |
protected long |
timestamp |
protected String |
version |
| Constructor and Description |
|---|
BaseConfigEvent(T paylod,
Class<T> type) |
| Modifier and Type | Method and Description |
|---|---|
T |
getResource()
Get the underlying property provider/configuration.
|
Class<T> |
getResourceType()
Access the type of resource.
|
long |
getTimestamp()
Get the timestamp in millis from the current epoch. it is expected that the timestamp and the version are unique to
identify a changeset.
|
String |
getVersion()
Get the version relative to the observed resource.
|
String |
toString() |
protected long timestamp
protected String version
protected final T paylod
public Class<T> getResourceType()
ConfigEventgetResourceType in interface ConfigEvent<T>public T getResource()
ConfigEventgetResource in interface ConfigEvent<T>public String getVersion()
ConfigEventgetVersion in interface ConfigEvent<T>public long getTimestamp()
ConfigEventgetTimestamp in interface ConfigEvent<T>Copyright © 2014–2016 Apache Software Foundation. All rights reserved.