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 a
BatchBackingStore.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the time the last refresh of this backing store was attempted.Get the time at which this batch backing store was successfully reloaded.byte[]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, getOrderedValuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.oidc.metadata.BackingStore
getIndexedValues, getOrderedValues
-
Field Details
-
lastUpdate
Last time the metadata was updated. -
lastRefresh
Last time a refresh cycle occurred. -
originalValue
@Nullable private byte[] originalValueThe bytes of the original loaded metadata.
-
-
Constructor Details
-
DefaultBatchBackingStore
public DefaultBatchBackingStore()
-
-
Method Details
-
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
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
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
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.
-