summaryrefslogtreecommitdiff
path: root/java/src
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2008-04-22 13:17:11 +0200
committerBenoit Foucher <benoit@zeroc.com>2008-04-22 13:17:11 +0200
commitc32b069b16af9346e231582aa4f5fc47da388682 (patch)
tree2f5685f72f3bff1f6b52419ae1a9da0bd7846ff7 /java/src
parentbug 3007 - getpeername fails on Windows w/ IPv6 (diff)
downloadice-c32b069b16af9346e231582aa4f5fc47da388682.tar.bz2
ice-c32b069b16af9346e231582aa4f5fc47da388682.tar.xz
ice-c32b069b16af9346e231582aa4f5fc47da388682.zip
Added comments to Java & C# timer class
Diffstat (limited to 'java/src')
-rw-r--r--java/src/IceInternal/Timer.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/java/src/IceInternal/Timer.java b/java/src/IceInternal/Timer.java
index aef11cbf5c7..10a7e40f7a0 100644
--- a/java/src/IceInternal/Timer.java
+++ b/java/src/IceInternal/Timer.java
@@ -9,6 +9,15 @@
package IceInternal;
+//
+// NOTE: We don't use the java.util.Timer class for few reasons. The
+// Java TimerTask is a class not an interface making it more difficult
+// to use. The API is also a bit different, cancel() is a TimerTask
+// method not a Timer method and calling purge() on the timer on a
+// regular basis is required to allow canceled timer task objects to
+// be garbage collected.
+//
+
interface TimerTask
{
void runTimerTask();