V
- public interface ObjectIdentityCache<V extends IdentityCacheable> extends Closeable
Modifier and Type | Method and Description |
---|---|
void |
close()
close/release any associated resources
|
void |
dirtyKey(String key)
force the persistent backend, if any, to eventually be updated with
live object state for the given key
|
V |
get(String key)
get the object under the given key/name -- but should not mutate
object state
|
V |
getOrUse(String key,
Supplier<V> supplierOrNull)
get the object under the given key/name, using (and remembering)
the object supplied by the supplier if no prior mapping exists
-- but should not mutate object state
|
Set<String> |
keySet()
set of all keys
|
int |
size()
count of name-to-object contained
|
void |
sync()
force the persistent backend, if any, to be updated with all
live object state
|
V getOrUse(String key, Supplier<V> supplierOrNull)
void sync()
void dirtyKey(String key)
void close()
close
in interface AutoCloseable
close
in interface Closeable
int size()
Copyright © 2003-2014 Internet Archive. All Rights Reserved.