org.knime.core.util
Class KNIMETimer
java.lang.Object
java.util.Timer
org.knime.core.util.KNIMETimer
public final class KNIMETimer
- extends Timer
This final singleton class is a global timer available for all classes inside
KNIME. This timer is especially useful for nodes that execute external code
which is not aware of execution canceling and such stuff.
Users of this timer must make sure, that the scheduled tasks are
fast-running, otherwise other tasks will be blocked.
- Author:
- Thorsten Meinl, University of Konstanz
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cancel
public void cancel()
- Do not call this method, it won't let you cancel this timer, but
instead throw an
UnsupportedOperationException
at you.
- Overrides:
cancel
in class Timer
getInstance
public static KNIMETimer getInstance()
- Returns the singleton instance of the global KNIME timer.
- Returns:
- a timer
Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display,
or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the
copyright owner or as specified in the license file distributed with this product.