| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| public static interface | |
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final MessageQueue. | |
| private volatile int | |
| private final AtomicInteger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private <T> void | add(MessageQueue.
|
| public <T> void | addBinary(ByteBuffer message, boolean isLast, T attachment, BiConsumer<? super T, ? super Throwable> action, CompletableFuture<? super T> future)
|
| public <T> void | addClose(int statusCode, CharBuffer reason, T attachment, BiConsumer<? super T, ? super Throwable> action, CompletableFuture<? super T> future)
|
| public <T> void | addPing(ByteBuffer message, T attachment, BiConsumer<? super T, ? super Throwable> action, CompletableFuture<? super T> future)
|
| public <T> void | addPong(ByteBuffer message, T attachment, BiConsumer<? super T, ? super Throwable> action, CompletableFuture<? super T> future)
|
| public <T> void | addPong(Supplier<? extends ByteBuffer> message, T attachment, BiConsumer<? super T, ? super Throwable> action, CompletableFuture<? super T> future)
|
| public <T> void | addText(CharBuffer message, boolean isLast, T attachment, BiConsumer<? super T, ? super Throwable> action, CompletableFuture<T> future)
|
| protected static int | |
| public boolean | |
| public <R, E extends Throwable> R | |
| public void |
| elements | back to summary |
|---|---|
| private final MessageQueue. | |
| head | back to summary |
|---|---|
| private volatile int head | |
| tail | back to summary |
|---|---|
| private final AtomicInteger tail | |
| MessageQueue | back to summary |
|---|---|
| public MessageQueue(int capacity) | |
| add | back to summary |
|---|---|
| private <T> void add(MessageQueue. | |
| addBinary | back to summary |
|---|---|
| public <T> void addBinary(ByteBuffer message, boolean isLast, T attachment, BiConsumer<? super T, ? super Throwable> action, CompletableFuture<? super T> future) throws IOException | |
| addClose | back to summary |
|---|---|
| public <T> void addClose(int statusCode, CharBuffer reason, T attachment, BiConsumer<? super T, ? super Throwable> action, CompletableFuture<? super T> future) throws IOException | |
| addPing | back to summary |
|---|---|
| public <T> void addPing(ByteBuffer message, T attachment, BiConsumer<? super T, ? super Throwable> action, CompletableFuture<? super T> future) throws IOException | |
| addPong | back to summary |
|---|---|
| public <T> void addPong(ByteBuffer message, T attachment, BiConsumer<? super T, ? super Throwable> action, CompletableFuture<? super T> future) throws IOException | |
| addPong | back to summary |
|---|---|
| public <T> void addPong(Supplier<? extends ByteBuffer> message, T attachment, BiConsumer<? super T, ? super Throwable> action, CompletableFuture<? super T> future) throws IOException | |
| addText | back to summary |
|---|---|
| public <T> void addText(CharBuffer message, boolean isLast, T attachment, BiConsumer<? super T, ? super Throwable> action, CompletableFuture<T> future) throws IOException | |
| effectiveCapacityOf | back to summary |
|---|---|
| protected static int effectiveCapacityOf(int n) | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() | |
| peek | back to summary |
|---|---|
public <R, E extends Throwable> R peek(MessageQueue.
| |
| remove | back to summary |
|---|---|
| public void remove() | |
| Modifier and Type | Field and Description |
|---|---|
| private BiConsumer | |
| private Object | |
| private ByteBuffer | |
| private Supplier | |
| private CompletableFuture | |
| private boolean | |
| private volatile boolean | |
| private int | |
| private CharBuffer | |
| private MessageQueue. |
| Access | Constructor and Description |
|---|---|
| private |
| action | back to summary |
|---|---|
private BiConsumer<T, U> action
| |
| attachment | back to summary |
|---|---|
| private Object attachment | |
| binary | back to summary |
|---|---|
| private ByteBuffer binary | |
| binarySupplier | back to summary |
|---|---|
| private Supplier<? extends ByteBuffer> binarySupplier | |
| future | back to summary |
|---|---|
private CompletableFuture<T> future
| |
| isLast | back to summary |
|---|---|
| private boolean isLast | |
| ready | back to summary |
|---|---|
| private volatile boolean ready | |
| statusCode | back to summary |
|---|---|
| private int statusCode | |
| text | back to summary |
|---|---|
| private CharBuffer text | |
| type | back to summary |
|---|---|
| private MessageQueue. | |
| Message | back to summary |
|---|---|
| private Message() | |
| Modifier and Type | Method and Description |
|---|---|
| public <T> R | onBinary(ByteBuffer message, boolean isLast, T attachment, BiConsumer<? super T, ? super Throwable> action, CompletableFuture<? super T> future)
|
| public <T> R | onClose(int statusCode, CharBuffer reason, T attachment, BiConsumer<? super T, ? super Throwable> action, CompletableFuture<? super T> future)
|
| public R | |
| public <T> R | onPing(ByteBuffer message, T attachment, BiConsumer<? super T, ? super Throwable> action, CompletableFuture<? super T> future)
|
| public <T> R | onPong(ByteBuffer message, T attachment, BiConsumer<? super T, ? super Throwable> action, CompletableFuture<? super T> future)
|
| public <T> R | onPong(Supplier<? extends ByteBuffer> message, T attachment, BiConsumer<? super T, ? super Throwable> action, CompletableFuture<? super T> future)
|
| public <T> R | onText(CharBuffer message, boolean isLast, T attachment, BiConsumer<? super T, ? super Throwable> action, CompletableFuture<? super T> future)
|
| onBinary | back to summary |
|---|---|
| public <T> R onBinary(ByteBuffer message, boolean isLast, T attachment, BiConsumer<? super T, ? super Throwable> action, CompletableFuture<? super T> future) throws QueueCallback:E | |
| onClose | back to summary |
|---|---|
| public <T> R onClose(int statusCode, CharBuffer reason, T attachment, BiConsumer<? super T, ? super Throwable> action, CompletableFuture<? super T> future) throws QueueCallback:E | |
| onEmpty | back to summary |
|---|---|
| public R onEmpty() throws QueueCallback:E | |
| onPing | back to summary |
|---|---|
| public <T> R onPing(ByteBuffer message, T attachment, BiConsumer<? super T, ? super Throwable> action, CompletableFuture<? super T> future) throws QueueCallback:E | |
| onPong | back to summary |
|---|---|
| public <T> R onPong(ByteBuffer message, T attachment, BiConsumer<? super T, ? super Throwable> action, CompletableFuture<? super T> future) throws QueueCallback:E | |
| onPong | back to summary |
|---|---|
| public <T> R onPong(Supplier<? extends ByteBuffer> message, T attachment, BiConsumer<? super T, ? super Throwable> action, CompletableFuture<? super T> future) throws QueueCallback:E | |
| onText | back to summary |
|---|---|
| public <T> R onText(CharBuffer message, boolean isLast, T attachment, BiConsumer<? super T, ? super Throwable> action, CompletableFuture<? super T> future) throws QueueCallback:E | |
| Modifier and Type | Field and Description |
|---|---|
| public static final MessageQueue. | |
| public static final MessageQueue. | |
| public static final MessageQueue. | |
| public static final MessageQueue. | |
| public static final MessageQueue. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static MessageQueue. | |
| public static MessageQueue. |
| BINARY | back to summary |
|---|---|
| public static final MessageQueue. | |
| CLOSE | back to summary |
|---|---|
| public static final MessageQueue. | |
| PING | back to summary |
|---|---|
| public static final MessageQueue. | |
| PONG | back to summary |
|---|---|
| public static final MessageQueue. | |
| TEXT | back to summary |
|---|---|
| public static final MessageQueue. | |
| Type | back to summary |
|---|---|
| private Type() | |
| valueOf | back to summary |
|---|---|
| public static MessageQueue. | |
| values | back to summary |
|---|---|
| public static MessageQueue. | |