protected class AbstractDynamicMetadataResolver.EntityManagementData extends Object
Modifier and Type | Field and Description |
---|---|
private String |
entityID
The entity ID managed by this instance.
|
private DateTime |
expirationTime
Expiration time of the associated metadata.
|
private DateTime |
lastAccessedTime
The last time in milliseconds at which the entity's backing store data was accessed.
|
private DateTime |
lastUpdateTime
Last update time of the associated metadata.
|
private ReadWriteLock |
readWriteLock
Read-write lock instance which governs access to the entity's backing store data.
|
private DateTime |
refreshTriggerTime
Time at which should start attempting to refresh the metadata.
|
Modifier | Constructor and Description |
---|---|
protected |
EntityManagementData(String id)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getEntityID()
Get the entity ID managed by this instance.
|
DateTime |
getExpirationTime()
Get the expiration time of the metadata.
|
DateTime |
getLastAccessedTime()
Get the last time at which the entity's backing store data was accessed.
|
DateTime |
getLastUpdateTime()
Get the last update time of the metadata.
|
ReadWriteLock |
getReadWriteLock()
Get the read-write lock instance which governs access to the entity's backing store data.
|
DateTime |
getRefreshTriggerTime()
Get the refresh trigger time of the metadata.
|
void |
recordEntityAccess()
Record access of the entity's backing store data.
|
void |
setExpirationTime(DateTime dateTime)
Set the expiration time of the metadata.
|
void |
setLastUpdateTime(DateTime dateTime)
Set the last update time of the metadata.
|
void |
setRefreshTriggerTime(DateTime dateTime)
Set the refresh trigger time of the metadata.
|
private String entityID
private DateTime lastUpdateTime
private DateTime expirationTime
private DateTime refreshTriggerTime
private DateTime lastAccessedTime
private ReadWriteLock readWriteLock
@Nonnull public String getEntityID()
@Nullable public DateTime getLastUpdateTime()
public void setLastUpdateTime(@Nonnull DateTime dateTime)
dateTime
- the last update time@Nonnull public DateTime getExpirationTime()
public void setExpirationTime(@Nonnull DateTime dateTime)
dateTime
- the new expiration time@Nonnull public DateTime getRefreshTriggerTime()
public void setRefreshTriggerTime(@Nonnull DateTime dateTime)
dateTime
- the new refresh trigger time@Nonnull public DateTime getLastAccessedTime()
public void recordEntityAccess()
@Nonnull public ReadWriteLock getReadWriteLock()
Copyright © 1999–2015 JBoss by Red Hat. All rights reserved.