public class EzyBlockingSocketDisconnectionQueue extends com.tvd12.ezyfox.util.EzyLoggable implements EzySocketDisconnectionQueue
| Constructor and Description |
|---|
EzyBlockingSocketDisconnectionQueue() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(EzySocketDisconnection disconnection) |
void |
clear() |
boolean |
isEmpty() |
void |
remove(EzySocketDisconnection disconnection) |
int |
size() |
EzySocketDisconnection |
take() |
public int size()
size in interface EzySocketDisconnectionQueuepublic void clear()
clear in interface EzySocketDisconnectionQueuepublic boolean isEmpty()
isEmpty in interface EzySocketDisconnectionQueuepublic boolean add(EzySocketDisconnection disconnection)
add in interface EzySocketDisconnectionQueuepublic void remove(EzySocketDisconnection disconnection)
remove in interface EzySocketDisconnectionQueuepublic EzySocketDisconnection take() throws InterruptedException
take in interface EzySocketDisconnectionQueueInterruptedExceptionCopyright © 2021 Young Monkeys. All rights reserved.