Skip to content

Commit

Permalink
增加wheeltimer的测试用例
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangwenping committed Jan 3, 2017
1 parent 2b49ada commit fdfec86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/snowcattle/timer/WheelTimer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<E> timeSlotSet = wheel.get(previousTickIndex);
timeSlotSet.add(e);
indicator.put(e, timeSlotSet);
Expand Down Expand Up @@ -173,7 +173,7 @@ public void notifyExpired(int idx) {
}

for (ExpirationListener<E> listener : expirationListeners) {
System.out.println("过期索引"+ idx);
// System.out.println("过期索引"+ idx);
listener.expired(e);
}
}
Expand Down

0 comments on commit fdfec86

Please sign in to comment.