protected class AbstractDynamicMetadataResolver.EntityManagementData extends Object
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.
|
org.joda.time.DateTime |
getExpirationTime()
Get the expiration time of the metadata.
|
org.joda.time.DateTime |
getLastAccessedTime()
Get the last time at which the entity's backing store data was accessed.
|
org.joda.time.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.
|
org.joda.time.DateTime |
getRefreshTriggerTime()
Get the refresh trigger time of the metadata.
|
void |
recordEntityAccess()
Record access of the entity's backing store data.
|
void |
setExpirationTime(org.joda.time.DateTime dateTime)
Set the expiration time of the metadata.
|
void |
setLastUpdateTime(org.joda.time.DateTime dateTime)
Set the last update time of the metadata.
|
void |
setRefreshTriggerTime(org.joda.time.DateTime dateTime)
Set the refresh trigger time of the metadata.
|
@Nonnull public String getEntityID()
@Nullable public org.joda.time.DateTime getLastUpdateTime()
public void setLastUpdateTime(@Nonnull org.joda.time.DateTime dateTime)
dateTime
- the last update time@Nonnull public org.joda.time.DateTime getExpirationTime()
public void setExpirationTime(@Nonnull org.joda.time.DateTime dateTime)
dateTime
- the new expiration time@Nonnull public org.joda.time.DateTime getRefreshTriggerTime()
public void setRefreshTriggerTime(@Nonnull org.joda.time.DateTime dateTime)
dateTime
- the new refresh trigger time@Nonnull public org.joda.time.DateTime getLastAccessedTime()
public void recordEntityAccess()
@Nonnull public ReadWriteLock getReadWriteLock()
Copyright © 2017. All rights reserved.