Located in compilation unit of com.
| Modifier and Type | Field and Description |
|---|---|
| public static final DisabledBuffer |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | drainTo(Consumer<Object>
the action to perform on each element consumer)Implements com. |
| public int | offer(Object
the element to add e)Implements com. |
| public long | reads()
Implements com. |
| public long | size()
Overrides default com. |
| public static DisabledBuffer | |
| public static DisabledBuffer[] | |
| public long | writes()
Implements com. |
| INSTANCE | back to summary |
|---|---|
| public static final DisabledBuffer INSTANCE | |
| DisabledBuffer | back to summary |
|---|---|
| private DisabledBuffer() | |
| drainTo | back to summary |
|---|---|
| public void drainTo(Consumer<Object> consumer) Implements com. Doc from com. Drains the buffer, sending each element to the consumer for processing. The caller must ensure that a consumer has exclusive read access to the buffer. | |
| offer | back to summary |
|---|---|
| public int offer(Object e) Implements com. Doc from com. Inserts the specified element into this buffer if it is possible to do so immediately without violating capacity restrictions. The addition is allowed to fail spuriously if multiple threads insert concurrently. | |
| reads | back to summary |
|---|---|
| public long reads() Implements com. Doc from com. Returns the number of elements that have been read from the buffer.
| |
| size | back to summary |
|---|---|
| public long size() Overrides default com. Doc from com. Returns the number of elements residing in the buffer.
| |
| valueOf | back to summary |
|---|---|
| public static DisabledBuffer valueOf(String name) | |
| values | back to summary |
|---|---|
| public static DisabledBuffer[] values() | |
| writes | back to summary |
|---|---|
| public long writes() Implements com. Doc from com. Returns the number of elements that have been written to the buffer.
| |