ModeShape Distribution 3.2.0.Final

org.modeshape.jcr
Class JcrRepository.GarbageCollectionTask

java.lang.Object
  extended by org.modeshape.jcr.JcrRepository.GarbageCollectionTask
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
JcrRepository.BinaryValueGarbageCollectionTask, JcrRepository.LockGarbageCollectionTask
Enclosing class:
JcrRepository

protected abstract static class JcrRepository.GarbageCollectionTask
extends Object
implements Runnable

The garbage collection tasks should get cancelled before the repository is shut down, but just in case we'll use a weak reference to hold onto the JcrRepository instance and we'll also check that the repository is running before we actually do any work.


Constructor Summary
protected JcrRepository.GarbageCollectionTask(JcrRepository repository)
           
 
Method Summary
protected abstract  void doRun(JcrRepository repository)
          Perform the garbage collection task.
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JcrRepository.GarbageCollectionTask

protected JcrRepository.GarbageCollectionTask(JcrRepository repository)
Method Detail

run

public final void run()
Specified by:
run in interface Runnable

doRun

protected abstract void doRun(JcrRepository repository)
Perform the garbage collection task.

Parameters:
repository - the non-null and running repository instance

ModeShape Distribution 3.2.0.Final

Copyright © 2008-2013 JBoss, a division of Red Hat. All Rights Reserved.