From fdfec86153c8d856dbd58d1ef64d6885e878d4b8 Mon Sep 17 00:00:00 2001 From: jiangwenping Date: Tue, 3 Jan 2017 18:20:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0wheeltimer=E7=9A=84=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/snowcattle/timer/WheelTimer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/snowcattle/timer/WheelTimer.java b/src/main/java/com/snowcattle/timer/WheelTimer.java index c2a1efe..f910c14 100644 --- a/src/main/java/com/snowcattle/timer/WheelTimer.java +++ b/src/main/java/com/snowcattle/timer/WheelTimer.java @@ -138,7 +138,7 @@ public long add(E e) { synchronized (e) { checkAdd(e); int previousTickIndex = getPreviousTickIndex(); - System.out.println("放入索引" + previousTickIndex); +// System.out.println("放入索引" + previousTickIndex); TimeSlot timeSlotSet = wheel.get(previousTickIndex); timeSlotSet.add(e); indicator.put(e, timeSlotSet); @@ -173,7 +173,7 @@ public void notifyExpired(int idx) { } for (ExpirationListener listener : expirationListeners) { - System.out.println("过期索引"+ idx); +// System.out.println("过期索引"+ idx); listener.expired(e); } }