public class DetachManager extends 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 |
---|---|
Object |
detach(Object toDetach)
Return a detached version of the given instance.
|
Object[] |
detachAll(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,
ObjectOutput out,
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, ObjectOutput out, BitSet idxs) throws IOException
IOException
public Object[] detachAll(Collection instances)
Copyright © 2006–2013 Apache Software Foundation. All rights reserved.