uk.ac.soton.itinnovation.grid.service.utils.cleanup
Class CleanUpThread

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.service.utils.cleanup.CleanUpThread

public class CleanUpThread
extends Object


Constructor Summary
CleanUpThread()
           
 
Method Summary
static boolean deRegister(Cleanable dontCleanMe)
          De-registers the cleanable object with the cleanup thread.
static void register(Cleanable cleanMe)
          Registers the cleanable object with the cleanup thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CleanUpThread

public CleanUpThread()
Method Detail

register

public static void register(Cleanable cleanMe)
Registers the cleanable object with the cleanup thread. The next iteration of cleanup processing will include this object. If this is the first registration, the background cleanup thread will be started.

Parameters:
cleanMe - The cleanable object registering it's involvement in the cleanup processing.

deRegister

public static boolean deRegister(Cleanable dontCleanMe)
De-registers the cleanable object with the cleanup thread. The next iteration of cleanup processing will not include this object.

Parameters:
dontCleanMe - The cleanable object removing it's involvement in the cleanup processing.


Copyright © 2001-2007 University of Southampton IT Innovation Centre. All Rights Reserved.