+
+ public DisposingPolicy() {
+ this(MAX_QUEUE_LENGTH);
+ }
+
+ public DisposingPolicy(int maxQueueLength) {
+ this.maxQueueLength = maxQueueLength;
+ this.disposerQueue = new ArrayDeque<>(maxQueueLength);
+ this.disposeTime = new TObjectLongHashMap<>(maxQueueLength);
+ }
+
+ public void setMaxQueueLength(int maxQueueLength) {
+ this.maxQueueLength = maxQueueLength;
+ }
+