Package omero.util

Class Resources


  • public class Resources
    extends java.lang.Object
    Container class for storing resources which should be cleaned up on close and periodically checked. Note: this class uses java.util.logging (JUL) rather than commons-logging since it may be used on the client-side. Any use server-side will have logs forwarded to log4j via slf4j.
    • Constructor Detail

      • Resources

        public Resources()
        As Resources(int) but specifies a 60 second sleep period between task execution.
      • Resources

        public Resources​(int sleeptimeSeconds,
                         java.util.concurrent.ScheduledExecutorService service)
    • Method Detail

      • size

        public int size()
      • cleanup

        public void cleanup()