Class AbstractDynamicMetadataResolver.EntityManagementData
java.lang.Object
org.opensaml.saml.metadata.resolver.impl.AbstractDynamicMetadataResolver.EntityManagementData
- Enclosing class:
- AbstractDynamicMetadataResolver
Class holding per-entity management data.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringThe entity ID managed by this instance.private InstantExpiration time of the associated metadata.private InstantThe last time at which the entity's backing store data was accessed.private InstantLast update time of the associated metadata.private InstantThe time at which the negative lookup cache flag expires, if set.private ReadWriteLockRead-write lock instance which governs access to the entity's backing store data.private InstantTime at which should start attempting to refresh the metadata. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClear out the negative lookup cache.Get the entity ID managed by this instance.Get the expiration time of the metadata.Get the last time at which the entity's backing store data was accessed.Get the last update time of the metadata.Get the read-write lock instance which governs access to the entity's backing store data.Get the refresh trigger time of the metadata.Initialize the negative lookup cache for the entity.booleanDetermine whether the negative lookup cache for the entity is in effect.voidRecord access of the entity's backing store data.voidsetExpirationTime(Instant dateTime) Set the expiration time of the metadata.voidsetLastUpdateTime(Instant dateTime) Set the last update time of the metadata.voidsetRefreshTriggerTime(Instant dateTime) Set the refresh trigger time of the metadata.
-
Field Details
-
entityID
The entity ID managed by this instance. -
lastUpdateTime
Last update time of the associated metadata. -
expirationTime
Expiration time of the associated metadata. -
refreshTriggerTime
Time at which should start attempting to refresh the metadata. -
lastAccessedTime
The last time at which the entity's backing store data was accessed. -
negativeLookupCacheExpiration
The time at which the negative lookup cache flag expires, if set. -
readWriteLock
Read-write lock instance which governs access to the entity's backing store data.
-
-
Constructor Details
-
EntityManagementData
Constructor.- Parameters:
id- the entity ID managed by this instance
-
-
Method Details
-
getEntityID
Get the entity ID managed by this instance.- Returns:
- the entity ID
-
getLastUpdateTime
Get the last update time of the metadata.- Returns:
- the last update time, or null if no metadata is yet loaded for the entity
-
setLastUpdateTime
Set the last update time of the metadata.- Parameters:
dateTime- the last update time
-
getExpirationTime
Get the expiration time of the metadata.- Returns:
- the expiration time
-
setExpirationTime
Set the expiration time of the metadata.- Parameters:
dateTime- the new expiration time
-
getRefreshTriggerTime
Get the refresh trigger time of the metadata.- Returns:
- the refresh trigger time
-
setRefreshTriggerTime
Set the refresh trigger time of the metadata.- Parameters:
dateTime- the new refresh trigger time
-
getLastAccessedTime
Get the last time at which the entity's backing store data was accessed.- Returns:
- last access time
-
recordEntityAccess
public void recordEntityAccess()Record access of the entity's backing store data. -
isNegativeLookupCacheActive
public boolean isNegativeLookupCacheActive()Determine whether the negative lookup cache for the entity is in effect.- Returns:
- true if active, false otherwise
-
initNegativeLookupCache
Initialize the negative lookup cache for the entity.- Returns:
- the time before which no further lookups for the entity will be performed
-
clearNegativeLookupCache
public void clearNegativeLookupCache()Clear out the negative lookup cache. -
getReadWriteLock
Get the read-write lock instance which governs access to the entity's backing store data.- Returns:
- the lock instance
-