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()
ConfigEvent
getResourceType
in interface ConfigEvent<T>
public T getResource()
ConfigEvent
getResource
in interface ConfigEvent<T>
public String getVersion()
ConfigEvent
getVersion
in interface ConfigEvent<T>
public long getTimestamp()
ConfigEvent
getTimestamp
in interface ConfigEvent<T>
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.