public class InfinispanSessionMetaDataFactory<L> extends Object implements SessionMetaDataFactory<InfinispanSessionMetaData<L>,L>
| Constructor and Description |
|---|
InfinispanSessionMetaDataFactory(org.infinispan.Cache<? extends Key<String>,?> cache,
CacheProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
ImmutableSessionMetaData |
createImmutableSessionMetaData(String id,
InfinispanSessionMetaData<L> entry) |
InvalidatableSessionMetaData |
createSessionMetaData(String id,
InfinispanSessionMetaData<L> entry) |
InfinispanSessionMetaData<L> |
createValue(String id,
Void context)
Creates a value in the cache, if it does not already exist.
|
void |
evict(String id)
Evict the specified item from the cache.
|
InfinispanSessionMetaData<L> |
findValue(String id)
Locates the value in the cache with the specified identifier.
|
boolean |
purge(String id)
Like
Remover.remove(Object), but does not notify listeners. |
boolean |
remove(String id)
Removes the specified entry from the cache.
|
InfinispanSessionMetaData<L> |
tryValue(String id)
Returns the value for the specified key, if possible.
|
public InfinispanSessionMetaDataFactory(org.infinispan.Cache<? extends Key<String>,?> cache, CacheProperties properties)
public InfinispanSessionMetaData<L> createValue(String id, Void context)
CreatorcreateValue in interface Creator<String,InfinispanSessionMetaData<L>,Void>id - the cache entry identifier.public InfinispanSessionMetaData<L> findValue(String id)
LocatorfindValue in interface Locator<String,InfinispanSessionMetaData<L>>id - the cache entry identifierpublic InfinispanSessionMetaData<L> tryValue(String id)
LocatortryValue in interface Locator<String,InfinispanSessionMetaData<L>>id - a cache keypublic InvalidatableSessionMetaData createSessionMetaData(String id, InfinispanSessionMetaData<L> entry)
createSessionMetaData in interface SessionMetaDataFactory<InfinispanSessionMetaData<L>,L>public ImmutableSessionMetaData createImmutableSessionMetaData(String id, InfinispanSessionMetaData<L> entry)
createImmutableSessionMetaData in interface SessionMetaDataFactory<InfinispanSessionMetaData<L>,L>public boolean remove(String id)
Removerpublic boolean purge(String id)
RemoverRemover.remove(Object), but does not notify listeners.Copyright © 2021 JBoss by Red Hat. All rights reserved.