public class EzyBlockingSocketStreamQueue extends com.tvd12.ezyfox.util.EzyLoggable implements EzySocketStreamQueue
| Constructor and Description |
|---|
EzyBlockingSocketStreamQueue() |
EzyBlockingSocketStreamQueue(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(EzySocketStream stream) |
void |
clear() |
boolean |
isEmpty() |
boolean |
isFull() |
protected BlockingQueue<EzySocketStream> |
newQueue(int capacity) |
void |
remove(EzySocketStream stream) |
int |
size() |
EzySocketStream |
take() |
public EzyBlockingSocketStreamQueue()
public EzyBlockingSocketStreamQueue(int capacity)
protected BlockingQueue<EzySocketStream> newQueue(int capacity)
public int size()
size in interface EzySocketStreamQueuepublic void clear()
clear in interface EzySocketStreamQueuepublic boolean isFull()
isFull in interface EzySocketStreamQueuepublic boolean isEmpty()
isEmpty in interface EzySocketStreamQueuepublic boolean add(EzySocketStream stream)
add in interface EzySocketStreamQueuepublic void remove(EzySocketStream stream)
remove in interface EzySocketStreamQueuepublic EzySocketStream take() throws InterruptedException
take in interface EzySocketStreamQueueInterruptedExceptionCopyright © 2021 Young Monkeys. All rights reserved.