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)
Creator
createValue
in interface Creator<String,Object,Void>
id
- the cache entry identifier.public Object findValue(String id)
Locator
public boolean remove(String id)
Remover
public void evict(String id)
Evictor
public SessionAttributes createSessionAttributes(String id, Object value)
createSessionAttributes
in interface SessionAttributesFactory<Object>
public ImmutableSessionAttributes createImmutableSessionAttributes(String id, Object value)
createImmutableSessionAttributes
in interface SessionAttributesFactory<Object>
Copyright © 2018 JBoss by Red Hat. All rights reserved.