omero.util
Interface Resources.Entry

Enclosing class:
Resources

public static interface Resources.Entry

Interface to be implemented by any object which wants to be managed by the Resources class.


Method Summary
 boolean check()
          Called during each cycle.
 void cleanup()
          Gives an Resources.Entry a chance to cleanup resources before it is removed from checking.
 

Method Detail

check

boolean check()
Called during each cycle. If it returns false or throws an exception, cleanup() will be called on the instance, and it will be removed.


cleanup

void cleanup()
Gives an Resources.Entry a chance to cleanup resources before it is removed from checking.



OmeroJava Api

Version: Beta-4.1.1-r5927-b91

Copyright © 2009 The University of Dundee. All Rights Reserved.