com.netflix.util.concurrent
Class ShutdownEnabledTimer

java.lang.Object
  extended by java.util.Timer
      extended by com.netflix.util.concurrent.ShutdownEnabledTimer

public class ShutdownEnabledTimer
extends java.util.Timer

ShutdownEnabledTimer class handles runtime shutdown issues. Apparently, adding a runtime shutdown hook will create a global reference which can cause memory leaks if not cleaned up. This abstraction provides a wrapped mechanism to manage those runtime shutdown hooks.


Constructor Summary
ShutdownEnabledTimer(java.lang.String name, boolean daemon)
           
 
Method Summary
 void cancel()
           
 
Methods inherited from class java.util.Timer
purge, schedule, schedule, schedule, schedule, scheduleAtFixedRate, scheduleAtFixedRate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShutdownEnabledTimer

public ShutdownEnabledTimer(java.lang.String name,
                            boolean daemon)
Method Detail

cancel

public void cancel()
Overrides:
cancel in class java.util.Timer