IoOutputStream capable of queuing write requests.
| Modifier and Type | Field and Description |
|---|---|
| protected final long | |
| protected final AtomicReference | |
| protected final Object | |
| protected final int | |
| protected final Duration | |
| protected final IoOutputStream | |
| protected final AtomicInteger | |
| protected final AtomicReference | |
| protected final Queue | |
| protected final AtomicLong |
| Access | Constructor and Description |
|---|---|
| public | |
| public | BufferedIoOutputStream(Object id, long channelId, IoOutputStream out, int maxPendingBytesCount, Duration maxWaitForPendingWrites)
|
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| public long | |
| public Object | |
| protected Closeable | |
| private IoWriteFutureImpl | |
| protected void | |
| public String | |
| protected void | |
| public IoWriteFuture | writeBuffer(Buffer
the data to write buffer)Note the buffer must not be touched until the returned write future is completed. Implements org. Write the given buffer. |
| channelId | back to summary |
|---|---|
| protected final long channelId | |
| currentWrite | back to summary |
|---|---|
| protected final AtomicReference<IoWriteFutureImpl> currentWrite | |
| id | back to summary |
|---|---|
| protected final Object id | |
| maxPendingBytesCount | back to summary |
|---|---|
| protected final int maxPendingBytesCount | |
| maxWaitForPendingWrites | back to summary |
|---|---|
| protected final Duration maxWaitForPendingWrites | |
| out | back to summary |
|---|---|
| protected final IoOutputStream out | |
| pendingBytesCount | back to summary |
|---|---|
| protected final AtomicInteger pendingBytesCount | |
| pendingException | back to summary |
|---|---|
| protected final AtomicReference<SshChannelBufferedOutputException> pendingException | |
| writes | back to summary |
|---|---|
| protected final Queue<IoWriteFutureImpl> writes | |
| writtenBytesCount | back to summary |
|---|---|
| protected final AtomicLong writtenBytesCount | |
| BufferedIoOutputStream | back to summary |
|---|---|
| public BufferedIoOutputStream(Object id, long channelId, IoOutputStream out, PropertyResolver resolver) | |
| BufferedIoOutputStream | back to summary |
|---|---|
| public BufferedIoOutputStream(Object id, long channelId, IoOutputStream out, int maxPendingBytesCount, Duration maxWaitForPendingWrites) | |
| finishWrite | back to summary |
|---|---|
| protected void finishWrite(IoWriteFutureImpl future, int bufferSize) | |
| getChannelId | back to summary |
|---|---|
| public long getChannelId() Implements org.
| |
| getId | back to summary |
|---|---|
| public Object getId() | |
| getInnerCloseable | back to summary |
|---|---|
| protected Closeable getInnerCloseable() Implements abstract org.
| |
| getWriteRequest | back to summary |
|---|---|
| private IoWriteFutureImpl getWriteRequest() | |
| startWriting | back to summary |
|---|---|
| protected void startWriting() throws IOException | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| waitForAvailableWriteSpace | back to summary |
|---|---|
| protected void waitForAvailableWriteSpace(int requiredSize) throws IOException | |
| writeBuffer | back to summary |
|---|---|
| public IoWriteFuture writeBuffer(Buffer buffer) throws IOException Implements org. Doc from org. Write the given buffer.
| |