Class DetachManager

  • All Implemented Interfaces:
    DetachState

    public class DetachManager
    extends java.lang.Object
    implements DetachState
    Handles detaching instances.
    Author:
    Marc Prud'hommeaux
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DetachManager

        public DetachManager​(BrokerImpl broker,
                             boolean full,
                             OpCallbacks call)
        Constructor.
        Parameters:
        broker - owning broker
        full - 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-place
    • Method Detail

      • detach

        public java.lang.Object detach​(java.lang.Object toDetach)
        Return a detached version of the given instance.
      • detachAll

        public java.lang.Object[] detachAll​(java.util.Collection instances)
        Return detached versions of all the given instances. If not copying, null will be returned.