T - type of objects in queue@ThreadSafe public class WaitingQueue<T> extends Object implements AutoCloseable
| Modifier and Type | Class and Description |
|---|---|
static interface |
WaitingQueue.Handler<T> |
| Constructor and Description |
|---|
WaitingQueue(WaitingQueue.Handler<T> handler,
int maxSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
acquire(CompletableFuture<T> acquire) |
void |
close() |
Iterator<T> |
coldIterator() |
void |
delete(T object) |
int |
getIdleCount() |
int |
getPendingCount() |
int |
getTotalCount() |
int |
getTotalLimit() |
int |
getUsedCount() |
int |
getWaitingCount() |
int |
getWaitingLimit() |
void |
release(T object) |
void |
updateLimits(int maxSize) |
void |
updateLimits(int maxSize,
int waitingsLimit) |
public WaitingQueue(WaitingQueue.Handler<T> handler, int maxSize)
public void updateLimits(int maxSize)
public void updateLimits(int maxSize,
int waitingsLimit)
public void acquire(CompletableFuture<T> acquire)
public void release(T object)
public void delete(T object)
public void close()
close in interface AutoCloseablepublic int getIdleCount()
public int getUsedCount()
public int getTotalCount()
public int getPendingCount()
public int getWaitingCount()
public int getTotalLimit()
public int getWaitingLimit()
Copyright © 2023. All rights reserved.