public interface GroupAwareBackingCache<K extends Serializable,V extends Cacheable<K>,G extends Serializable,M extends SerializationGroupMember<K,V,G>> extends PassivatingBackingCache<K,V,M>
BackingCache
that can manage the relationship of its underlying entries to any SerializationGroup
.Modifier and Type | Method and Description |
---|---|
SerializationGroup<K,V,G> |
createGroup()
Create a
SerializationGroup to contain objects cached by this object. |
void |
notifyPreReplicate(M member)
Callback from the group informing the cache it needs to invoke pre-replication callbacks on the member.
|
void |
setGroup(V obj,
SerializationGroup<K,V,G> group)
Assign the given object to the given group.
|
getCompatibilityChecker
addLifecycleListener, create, discard, get, isClustered, peek, release, removeLifecycleListener, start, stop
getStrictAffinity, getWeakAffinity, hasAffinity
passivate
SerializationGroup<K,V,G> createGroup()
SerializationGroup
to contain objects cached by this object.SerializationGroup
void setGroup(V obj, SerializationGroup<K,V,G> group)
SerializationGroup
implementation type
returned by createGroup()
.obj
- group
- IllegalStateException
- if the group's cache is incompatible with ourself.void notifyPreReplicate(M member)
member
- the group memberIllegalStateException
- if the member is in-use
.Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.