Package net.shibboleth.oidc.metadata
Interface BatchBackingStore<I,T>
-
- Type Parameters:
I- The metadata identifier type.T- The metadata type.
- All Superinterfaces:
BackingStore<I,T>
public interface BatchBackingStore<I,T> extends BackingStore<I,T>
A specialisation of aBackingStorethat deals with batch metadata. Operations on batch metadata happen together e.g. a reload will evict all previous entries and all new entries are reloaded in one go. Individual entries are not updated dynamically as an when needed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InstantgetLastRefresh()Get the time the last refresh of this backing store was attempted.InstantgetLastUpdate()Get the time at which this batch backing store was successfully reloaded.byte[]getOriginalValue()Gets the source bytes of the source before it was parsed.voidsetLastRefresh(Instant refreshedAt)Set the time at which the last refresh was attempted.voidsetLastUpdate(Instant updatedAt)Set the time at which this batch backing store was successfully reloaded/updated.voidsetOriginalValue(byte[] originalValue)Sets the source bytes of the source before it was parsed.-
Methods inherited from interface net.shibboleth.oidc.metadata.BackingStore
getIndexedValues, getOrderedValues
-
-
-
-
Method Detail
-
getLastUpdate
@Nullable Instant getLastUpdate()
Get the time at which this batch backing store was successfully reloaded. That is, completely cleared and new entries added.- Returns:
- the last update time.
-
getLastRefresh
@Nullable Instant getLastRefresh()
Get the time the last refresh of this backing store was attempted.- Returns:
- the last attempted refresh time.
-
setLastUpdate
void setLastUpdate(@Nullable Instant updatedAt)Set the time at which this batch backing store was successfully reloaded/updated.- Parameters:
updatedAt- the time it was last updated.
-
setLastRefresh
void setLastRefresh(@Nullable Instant refreshedAt)Set the time at which the last refresh was attempted.- Parameters:
refreshedAt- the refreshed time.
-
getOriginalValue
@Nullable byte[] getOriginalValue()
Gets the source bytes of the source before it was parsed.- Returns:
- the source bytes.
-
setOriginalValue
void setOriginalValue(@Nullable byte[] originalValue)Sets the source bytes of the source before it was parsed.- Parameters:
originalValue- the source bytes.
-
-