public class FineSessionAttributesFactory extends Object implements SessionAttributesFactory<Object>
SessionAttributesFactory for fine granularity sessions.
A given session's attributes are mapped to N co-located cache entries, where N is the number of session attributes.| Constructor and Description |
|---|
FineSessionAttributesFactory(org.infinispan.Cache<SessionAttributeKey,MarshalledValue<Object,MarshallingContext>> cache,
Marshaller<Object,MarshalledValue<Object,MarshallingContext>,MarshallingContext> marshaller,
CacheProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
ImmutableSessionAttributes |
createImmutableSessionAttributes(String id,
Object value) |
SessionAttributes |
createSessionAttributes(String id,
Object value) |
Object |
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.
|
Object |
findValue(String id)
Locates the value in the cache with the specified identifier.
|
boolean |
remove(String id)
Removes the specified entry from the cache.
|
public FineSessionAttributesFactory(org.infinispan.Cache<SessionAttributeKey,MarshalledValue<Object,MarshallingContext>> cache, Marshaller<Object,MarshalledValue<Object,MarshallingContext>,MarshallingContext> marshaller, CacheProperties properties)
public Object createValue(String id, Void context)
CreatorcreateValue in interface Creator<String,Object,Void>id - the cache entry identifier.public Object findValue(String id)
Locatorpublic boolean remove(String id)
Removerpublic void evict(String id)
Evictorpublic SessionAttributes createSessionAttributes(String id, Object value)
createSessionAttributes in interface SessionAttributesFactory<Object>public ImmutableSessionAttributes createImmutableSessionAttributes(String id, Object value)
createImmutableSessionAttributes in interface SessionAttributesFactory<Object>Copyright © 2023 JBoss by Red Hat. All rights reserved.