public class CoarseSessionAttributesFactory extends Object implements SessionAttributesFactory<Map.Entry<Map<String,Object>,MarshalledValue<Map<String,Object>,MarshallingContext>>>
SessionAttributesFactory for coarse granularity sessions, where all session attributes are stored in a single cache entry.| Constructor and Description |
|---|
CoarseSessionAttributesFactory(org.infinispan.Cache<SessionAttributesKey,MarshalledValue<Map<String,Object>,MarshallingContext>> cache,
Marshaller<Map<String,Object>,MarshalledValue<Map<String,Object>,MarshallingContext>,MarshallingContext> marshaller,
CacheProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
ImmutableSessionAttributes |
createImmutableSessionAttributes(String id,
Map.Entry<Map<String,Object>,MarshalledValue<Map<String,Object>,MarshallingContext>> entry) |
SessionAttributes |
createSessionAttributes(String id,
Map.Entry<Map<String,Object>,MarshalledValue<Map<String,Object>,MarshallingContext>> entry) |
Map.Entry<Map<String,Object>,MarshalledValue<Map<String,Object>,MarshallingContext>> |
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.
|
Map.Entry<Map<String,Object>,MarshalledValue<Map<String,Object>,MarshallingContext>> |
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 CoarseSessionAttributesFactory(org.infinispan.Cache<SessionAttributesKey,MarshalledValue<Map<String,Object>,MarshallingContext>> cache, Marshaller<Map<String,Object>,MarshalledValue<Map<String,Object>,MarshallingContext>,MarshallingContext> marshaller, CacheProperties properties)
public Map.Entry<Map<String,Object>,MarshalledValue<Map<String,Object>,MarshallingContext>> createValue(String id, Void context)
CreatorcreateValue in interface Creator<String,Map.Entry<Map<String,Object>,MarshalledValue<Map<String,Object>,MarshallingContext>>,Void>id - the cache entry identifier.public Map.Entry<Map<String,Object>,MarshalledValue<Map<String,Object>,MarshallingContext>> findValue(String id)
Locatorpublic boolean remove(String id)
Removerpublic void evict(String id)
Evictorpublic SessionAttributes createSessionAttributes(String id, Map.Entry<Map<String,Object>,MarshalledValue<Map<String,Object>,MarshallingContext>> entry)
createSessionAttributes in interface SessionAttributesFactory<Map.Entry<Map<String,Object>,MarshalledValue<Map<String,Object>,MarshallingContext>>>public ImmutableSessionAttributes createImmutableSessionAttributes(String id, Map.Entry<Map<String,Object>,MarshalledValue<Map<String,Object>,MarshallingContext>> entry)
createImmutableSessionAttributes in interface SessionAttributesFactory<Map.Entry<Map<String,Object>,MarshalledValue<Map<String,Object>,MarshallingContext>>>Copyright © 2021 JBoss by Red Hat. All rights reserved.