io.netty.util.HashedWheelTimer.class Maven / Gradle / Ivy
???? 2? io/netty/util/HashedWheelTimer java/lang/Object io/netty/util/Timer HashedWheelTimer.java io/netty/util/HashedWheelTimer$1 0io/netty/util/HashedWheelTimer$HashedWheelBucket
HashedWheelBucket 1io/netty/util/HashedWheelTimer$HashedWheelTimeout
HashedWheelTimeout %io/netty/util/HashedWheelTimer$Worker Worker logger /Lio/netty/util/internal/logging/InternalLogger; INSTANCE_COUNTER +Ljava/util/concurrent/atomic/AtomicInteger; WARNED_TOO_MANY_INSTANCES +Ljava/util/concurrent/atomic/AtomicBoolean; INSTANCE_COUNT_LIMIT I @ leakDetector $Lio/netty/util/ResourceLeakDetector; FLio/netty/util/ResourceLeakDetector; WORKER_STATE_UPDATER 7Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater; YLjava/util/concurrent/atomic/AtomicIntegerFieldUpdater; leak #Lio/netty/util/ResourceLeakTracker; ELio/netty/util/ResourceLeakTracker; worker 'Lio/netty/util/HashedWheelTimer$Worker; workerThread Ljava/lang/Thread; WORKER_STATE_INIT WORKER_STATE_STARTED WORKER_STATE_SHUTDOWN workerState tickDuration J wheel 3[Lio/netty/util/HashedWheelTimer$HashedWheelBucket; mask startTimeInitialized %Ljava/util/concurrent/CountDownLatch; timeouts Ljava/util/Queue; FLjava/util/Queue; cancelledTimeouts pendingTimeouts (Ljava/util/concurrent/atomic/AtomicLong; maxPendingTimeouts startTime $assertionsDisabled Z ()V java/util/concurrent/Executors C defaultThreadFactory &()Ljava/util/concurrent/ThreadFactory; E F
D G '(Ljava/util/concurrent/ThreadFactory;)V A I
J this Lio/netty/util/HashedWheelTimer; #(JLjava/util/concurrent/TimeUnit;)V G(Ljava/util/concurrent/ThreadFactory;JLjava/util/concurrent/TimeUnit;)V A O
P unit Ljava/util/concurrent/TimeUnit; $(JLjava/util/concurrent/TimeUnit;I)V H(Ljava/util/concurrent/ThreadFactory;JLjava/util/concurrent/TimeUnit;I)V A U
V
ticksPerWheel d java/util/concurrent/TimeUnit [ MILLISECONDS ] S \ ^
threadFactory $Ljava/util/concurrent/ThreadFactory; I(Ljava/util/concurrent/ThreadFactory;JLjava/util/concurrent/TimeUnit;IZ)V A b
c???????? J(Ljava/util/concurrent/ThreadFactory;JLjava/util/concurrent/TimeUnit;IZJ)V A g
h
leakDetection A B
k E(Lio/netty/util/HashedWheelTimer;Lio/netty/util/HashedWheelTimer$1;)V A m
n % & p / r #java/util/concurrent/CountDownLatch t (I)V A v
u w 5 6 y (io/netty/util/internal/PlatformDependent { newMpscQueue ()Ljava/util/Queue; } ~
| 7 8 ? : 8 ? &java/util/concurrent/atomic/AtomicLong ? (J)V A ?
? ? ; < ? java/lang/NullPointerException ? ` (Ljava/lang/String;)V A ?
? ? "java/util/concurrent/ThreadFactory ? R "java/lang/IllegalArgumentException ? java/lang/StringBuilder ?
? k %tickDuration must be greater than 0: ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? (J)Ljava/lang/StringBuilder; ? ?
? ? toString ()Ljava/lang/String; ? ?
? ?
? ? &ticksPerWheel must be greater than 0: ? (I)Ljava/lang/StringBuilder; ? ?
? ? createWheel 6(I)[Lio/netty/util/HashedWheelTimer$HashedWheelBucket; ? ?
? 2 3 ? 4 ? toNanos (J)J ? ?
\ ? 0 1 ???????? :tickDuration: %d (expected: 0 < tickDuration in nanos < %d ? java/lang/Long ? valueOf (J)Ljava/lang/Long; ? ?
? ? java/lang/String ? format 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; ? ?
? ? newThread ((Ljava/lang/Runnable;)Ljava/lang/Thread; ? ? ? ? ' ( ? java/lang/Thread ? isDaemon ()Z ? ?
? ? ? "io/netty/util/ResourceLeakDetector ? track 7(Ljava/lang/Object;)Lio/netty/util/ResourceLeakTracker; ? ?
? ? !io/netty/util/ResourceLeakTracker ? " # ? = 1 ? ? )java/util/concurrent/atomic/AtomicInteger ? incrementAndGet ()I ? ?
? ? ? )java/util/concurrent/atomic/AtomicBoolean ?
compareAndSet (ZZ)Z ? ?
? ? reportTooManyInstances ? B
? finalize java/lang/Throwable ? ? B
? ? 5java/util/concurrent/atomic/AtomicIntegerFieldUpdater ? getAndSet (Ljava/lang/Object;I)I
decrementAndGet ?
?@ ,ticksPerWheel may not be greater than 2^30: normalizeTicksPerWheel (I)I
3 %(Lio/netty/util/HashedWheelTimer$1;)V A
i normalizedTicksPerWheel start java/lang/InterruptedException get (Ljava/lang/Object;)I
(Ljava/lang/Object;II)Z ?
B
? java/lang/IllegalStateException! cannot be started once stopped#
" ? java/lang/Error& Invalid WorkerState(
' ? > 1 + await- B
u. stop ()Ljava/util/Set;
currentThread ()Ljava/lang/Thread;23
?4 java/lang/Class6
getSimpleName8 ?
79 .stop() cannot be called from ; io/netty/util/TimerTask= close (Ljava/lang/Object;)Z?@ ?A ? @ C java/lang/AssertionErrorE
F k java/util/CollectionsH emptySetJ1
IK isAliveM ?
?N interruptP B
?Q joinS ?
?T unprocessedTimeoutsV1
W closed ignored Ljava/lang/InterruptedException; interrupted
newTimeout R(Lio/netty/util/TimerTask;JLjava/util/concurrent/TimeUnit;)Lio/netty/util/Timeout; task_ ()J ?a
?ba
?d /java/util/concurrent/RejectedExecutionExceptionf Number of pending timeouts (h @) is greater than or equal to maximum allowed pending timeouts (j )l
g ?
java/lang/Systemp nanoTimera
qs =(Lio/netty/util/HashedWheelTimer;Lio/netty/util/TimerTask;J)V Au
v java/util/Queuex addz@y{ Lio/netty/util/TimerTask; delay pendingTimeoutsCount deadline timeout 3Lio/netty/util/HashedWheelTimer$HashedWheelTimeout;a
?? !io/netty/util/internal/StringUtil? simpleClassName %(Ljava/lang/Class;)Ljava/lang/String;??
?? ? You are creating too many ? instances. ? b is a shared resource that must be reused across the JVM,so that only a few instances are created.? -io/netty/util/internal/logging/InternalLogger? error? ??? resourceType Ljava/lang/String;
access$202 $(Lio/netty/util/HashedWheelTimer;J)J x0 x1
access$200 #(Lio/netty/util/HashedWheelTimer;)J
access$300 G(Lio/netty/util/HashedWheelTimer;)Ljava/util/concurrent/CountDownLatch;
access$400 #(Lio/netty/util/HashedWheelTimer;)I
access$500 U(Lio/netty/util/HashedWheelTimer;)[Lio/netty/util/HashedWheelTimer$HashedWheelBucket;
access$600 9()Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
access$700 3(Lio/netty/util/HashedWheelTimer;)Ljava/util/Queue;
access$900 access$1000 access$1100 J(Lio/netty/util/HashedWheelTimer;)Ljava/util/concurrent/atomic/AtomicLong; desiredAssertionStatus? ?
7? 4io/netty/util/internal/logging/InternalLoggerFactory? getInstance B(Ljava/lang/Class;)Lio/netty/util/internal/logging/InternalLogger;??
??
? k
? k )io/netty/util/ResourceLeakDetectorFactory? instance -()Lio/netty/util/ResourceLeakDetectorFactory;??
?? newResourceLeakDetector 8(Ljava/lang/Class;I)Lio/netty/util/ResourceLeakDetector;??
?? /
newUpdater \(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;??
?
ConstantValue Signature Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions *()Ljava/util/Set;
SourceFile InnerClasses ! ? ? ? ! " # ? $ % &