Class DefaultBatchBackingStore<I,T>
- java.lang.Object
-
- net.shibboleth.oidc.metadata.impl.AbstractBackingStore<I,T>
-
- net.shibboleth.oidc.metadata.impl.DefaultBatchBackingStore<I,T>
-
- Type Parameters:
I- the metadata identifier type.T- the metadata type.
- All Implemented Interfaces:
BackingStore<I,T>,BatchBackingStore<I,T>
@ThreadSafe public class DefaultBatchBackingStore<I,T> extends AbstractBackingStore<I,T> implements BatchBackingStore<I,T>
Default implementation of aBatchBackingStore.
-
-
Field Summary
Fields Modifier and Type Field Description private InstantlastRefreshLast time a refresh cycle occurred.private InstantlastUpdateLast time the metadata was updated.private byte[]originalValueThe bytes of the original loaded metadata.
-
Constructor Summary
Constructors Constructor Description DefaultBatchBackingStore()
-
Method Summary
All Methods Instance Methods Concrete 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[] original)Sets the source bytes of the source before it was parsed.-
Methods inherited from class net.shibboleth.oidc.metadata.impl.AbstractBackingStore
getIndexedValues, getOrderedValues
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.oidc.metadata.BackingStore
getIndexedValues, getOrderedValues
-
-
-
-
Method Detail
-
getLastUpdate
@Nullable public Instant getLastUpdate()
Description copied from interface:BatchBackingStoreGet the time at which this batch backing store was successfully reloaded. That is, completely cleared and new entries added.- Specified by:
getLastUpdatein interfaceBatchBackingStore<I,T>- Returns:
- the last update time.
-
getLastRefresh
@Nullable public Instant getLastRefresh()
Description copied from interface:BatchBackingStoreGet the time the last refresh of this backing store was attempted.- Specified by:
getLastRefreshin interfaceBatchBackingStore<I,T>- Returns:
- the last attempted refresh time.
-
setLastUpdate
public void setLastUpdate(@Nullable Instant updatedAt)Description copied from interface:BatchBackingStoreSet the time at which this batch backing store was successfully reloaded/updated.- Specified by:
setLastUpdatein interfaceBatchBackingStore<I,T>- Parameters:
updatedAt- the time it was last updated.
-
setLastRefresh
public void setLastRefresh(@Nullable Instant refreshedAt)Description copied from interface:BatchBackingStoreSet the time at which the last refresh was attempted.- Specified by:
setLastRefreshin interfaceBatchBackingStore<I,T>- Parameters:
refreshedAt- the refreshed time.
-
getOriginalValue
@Nullable public byte[] getOriginalValue()
Description copied from interface:BatchBackingStoreGets the source bytes of the source before it was parsed.- Specified by:
getOriginalValuein interfaceBatchBackingStore<I,T>- Returns:
- the source bytes.
-
setOriginalValue
public void setOriginalValue(@Nullable byte[] original)Description copied from interface:BatchBackingStoreSets the source bytes of the source before it was parsed.- Specified by:
setOriginalValuein interfaceBatchBackingStore<I,T>- Parameters:
original- the source bytes.
-
-