public interface Cache<K extends Serializable,V extends Identifiable<K>> extends Removable<K>, AffinitySupport<K>
Modifier and Type | Method and Description |
---|---|
V |
create()
Creates and caches a new instance of
T . |
void |
discard(K key)
Discard the specified object from cache.
|
V |
get(K key)
Get the specified object from cache.
|
void |
release(V obj)
Release the object from use.
|
void |
start()
Start the cache.
|
void |
stop()
Stop the cache.
|
getStrictAffinity, getWeakAffinity, hasAffinity
V create()
T
.T
void discard(K key)
key
- the identifier of the objectV get(K key)
key
- the identifier of the objectvoid release(V obj)
obj
- the objectvoid start()
void stop()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.