ModeShape Distribution 3.5.0.Final

org.modeshape.jcr
Class JcrRepository.BackgroundRepositoryTask

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

protected abstract static class JcrRepository.BackgroundRepositoryTask
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.BackgroundRepositoryTask(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.BackgroundRepositoryTask

protected JcrRepository.BackgroundRepositoryTask(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.5.0.Final

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