Package overit.geocall.secrets
Class SecretEntry
java.lang.Object
overit.geocall.secrets.SecretEntry
- All Implemented Interfaces:
Serializable,Entry<Secret,Secret>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected final SecretsManagerClientprotected final Longprotected static final LogChannelprotected final Stringprotected final String -
Constructor Summary
ConstructorsConstructorDescriptionSecretEntry(Long companyId, String name, String versionId, SecretsManagerClient client) -
Method Summary
Modifier and TypeMethodDescriptionThe method for obtaining the composed instance of the object.booleangetKey()Defines the name of a cacheable objectlongDefines the ttl in milliseconds for the entry to remain in the local cache.inthashCode()load()The method for obtaining the real value of the entryMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface overit.geocall.cache.Entry
fromRaw, getCharset, getClusterTtl, getReadTtl, getView, toRaw
-
Field Details
-
LOG
-
CACHE_TIME_IN_MILLISECONDS
protected static final int CACHE_TIME_IN_MILLISECONDS- See Also:
-
companyId
-
name
-
versionId
-
client
-
-
Constructor Details
-
SecretEntry
-
-
Method Details
-
getKey
Description copied from interface:EntryDefines the name of a cacheable object -
load
Description copied from interface:EntryThe method for obtaining the real value of the entry -
compose
Description copied from interface:EntryThe method for obtaining the composed instance of the object. This method allows the real instance of the object to be aggregated with other information, such as the composition of a system configuration with the default one- Specified by:
composein interfaceEntry<Secret,Secret> - Parameters:
secret- the real instance of the object- Returns:
- the composed instance of the object. This method must be used after the invocation of the
Entry.load()method when the cache doesn't contain a version for this entry.
-
getStoreTtl
public long getStoreTtl()Description copied from interface:EntryDefines the ttl in milliseconds for the entry to remain in the local cache. After this interval, the entry should be removed.- Specified by:
getStoreTtlin interfaceEntry<Secret,Secret> - Returns:
- the ttl or -1 if the entry will never expire
-
equals
-
hashCode
public int hashCode()
-