public class DetachManager extends java.lang.Object implements DetachState
DETACH_ALL, DETACH_FETCH_GROUPS, DETACH_FGS, DETACH_LOADED
Constructor and Description |
---|
DetachManager(BrokerImpl broker,
boolean full,
OpCallbacks call)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
detach(java.lang.Object toDetach)
Return a detached version of the given instance.
|
java.lang.Object[] |
detachAll(java.util.Collection instances)
Return detached versions of all the given instances.
|
(package private) static boolean |
preSerialize(StateManagerImpl sm)
Used to prepare a detachable instance that does not externalize
detached state.
|
(package private) static boolean |
writeDetachedState(StateManagerImpl sm,
java.io.ObjectOutput out,
java.util.BitSet idxs)
Used by classes that externalize detached state.
|
public DetachManager(BrokerImpl broker, boolean full, OpCallbacks call)
broker
- owning brokerfull
- whether the entire broker cache is being detached; if
this is the case, we assume the broker has already
flushed if needed, and that we're detaching in-placestatic boolean preSerialize(StateManagerImpl sm)
static boolean writeDetachedState(StateManagerImpl sm, java.io.ObjectOutput out, java.util.BitSet idxs) throws java.io.IOException
java.io.IOException
public java.lang.Object detach(java.lang.Object toDetach)
public java.lang.Object[] detachAll(java.util.Collection instances)
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.