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)
Creator
createValue
in interface Creator<String,InfinispanSessionMetaData<L>,Void>
id
- the cache entry identifier.public InfinispanSessionMetaData<L> findValue(String id)
Locator
findValue
in interface Locator<String,InfinispanSessionMetaData<L>>
id
- the cache entry identifierpublic InfinispanSessionMetaData<L> tryValue(String id)
Locator
tryValue
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)
Remover
public boolean purge(String id)
Remover
Remover.remove(Object)
, but does not notify listeners.Copyright © 2017 JBoss by Red Hat. All rights reserved.