| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv class | |
| pack-priv class | |
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Cleaner | |
| pack-priv final AtomicBoolean | |
| pack-priv final HttpConnection | |
| pack-priv final String | |
| pack-priv final Logger | |
| pack-priv final AtomicBoolean | |
| pack-priv final Supplier | |
| pack-priv final AtomicBoolean | |
| pack-priv final AtomicBoolean | |
| pack-priv final RawChannelTube. | |
| pack-priv final FlowTube | |
| pack-priv final RawChannelTube. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private void | |
| private static List | |
| public ByteBuffer | Returns: the initial bytesImplements jdk. Hands over the initial bytes. |
| public ByteBuffer | |
| public void | |
| public void | shutdownInput()
Implements jdk. Shutdown the connection for reading without closing the channel. |
| public void | shutdownOutput()
Implements jdk. Shutdown the connection for writing without closing the channel. |
| public long | write(ByteBuffer[] srcs, int offset, int length)
Implements jdk.
|
| cleaner | back to summary |
|---|---|
| private static final Cleaner cleaner | |
| closed | back to summary |
|---|---|
| pack-priv final AtomicBoolean closed | |
| connection | back to summary |
|---|---|
| pack-priv final HttpConnection connection | |
| dbgTag | back to summary |
|---|---|
| pack-priv final String dbgTag | |
| debug | back to summary |
|---|---|
| pack-priv final Logger debug | |
| inited | back to summary |
|---|---|
| pack-priv final AtomicBoolean inited | |
| initial | back to summary |
|---|---|
| pack-priv final Supplier<ByteBuffer> initial | |
| inputClosed | back to summary |
|---|---|
| pack-priv final AtomicBoolean inputClosed | |
| outputClosed | back to summary |
|---|---|
| pack-priv final AtomicBoolean outputClosed | |
| readSubscriber | back to summary |
|---|---|
| pack-priv final RawChannelTube. | |
| tube | back to summary |
|---|---|
| pack-priv final FlowTube tube | |
| writePublisher | back to summary |
|---|---|
| pack-priv final RawChannelTube. | |
| RawChannelTube | back to summary |
|---|---|
| pack-priv RawChannelTube(HttpConnection connection, Supplier<ByteBuffer> initial) | |
| close | back to summary |
|---|---|
| public void close() Implements jdk. Closes this channel.
| |
| connectFlows | back to summary |
|---|---|
| private void connectFlows() | |
| copy | back to summary |
|---|---|
| private static List | |
| initialByteBuffer | back to summary |
|---|---|
| public ByteBuffer initialByteBuffer() throws IllegalStateException Implements jdk. Hands over the initial bytes. Once the bytes have been returned they are
no longer available and the method will throw an
| |
| read | back to summary |
|---|---|
| public ByteBuffer read() throws IOException Implements jdk. | |
| registerEvent | back to summary |
|---|---|
| public void registerEvent(RawChannel. Implements jdk. | |
| shutdownInput | back to summary |
|---|---|
| public void shutdownInput() Implements jdk. Shutdown the connection for reading without closing the channel. Once shutdown for reading then further reads on the channel will
return
| |
| shutdownOutput | back to summary |
|---|---|
| public void shutdownOutput() Implements jdk. Shutdown the connection for writing without closing the channel. Once shutdown for writing then further attempts to write to the
channel will throw
| |
| write | back to summary |
|---|---|
| public long write(ByteBuffer[] srcs, int offset, int length) throws IOException Implements jdk. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final AtomicBoolean | |
| pack-priv final System. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| closed | back to summary |
|---|---|
| pack-priv final AtomicBoolean closed | |
| debug | back to summary |
|---|---|
| pack-priv final System. | |
| CleanupChecker | back to summary |
|---|---|
| pack-priv CleanupChecker(AtomicBoolean closed, System. | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final ConcurrentLinkedQueue | |
| pack-priv volatile boolean | |
| pack-priv final AtomicReference | |
| pack-priv final ConcurrentLinkedQueue | |
| pack-priv long | |
| pack-priv volatile Flow. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public void | onComplete()
Implements java. Method invoked when it is known that no additional Subscriber method invocations will occur for a Subscription that is not already terminated by error, after which no other Subscriber methods are invoked by the Subscription. |
| public void | onError(Throwable throwable)
Implements java. Method invoked upon an unrecoverable error encountered by a Publisher or Subscription, after which no other Subscriber methods are invoked by the Subscription. |
| public void | onNext(List<ByteBuffer> item)
Implements java. Method invoked with a Subscription's next item. |
| public void | onSubscribe(Flow.
Implements java. Method invoked prior to invoking any other Subscriber methods for the given Subscription. |
| buffers | back to summary |
|---|---|
| pack-priv final ConcurrentLinkedQueue<ByteBuffer> buffers | |
| completed | back to summary |
|---|---|
| pack-priv volatile boolean completed | |
| errorRef | back to summary |
|---|---|
| pack-priv final AtomicReference<Throwable> errorRef | |
| events | back to summary |
|---|---|
| pack-priv final ConcurrentLinkedQueue<RawChannel. | |
| initialRequest | back to summary |
|---|---|
| pack-priv long initialRequest | |
| readSubscription | back to summary |
|---|---|
| pack-priv volatile Flow. | |
| ReadSubscriber | back to summary |
|---|---|
| pack-priv ReadSubscriber() | |
| checkEvents | back to summary |
|---|---|
| pack-priv void checkEvents() | |
| onComplete | back to summary |
|---|---|
| public void onComplete() Implements java. Doc from java. Method invoked when it is known that no additional Subscriber method invocations will occur for a Subscription that is not already terminated by error, after which no other Subscriber methods are invoked by the Subscription. If this method throws an exception, resulting behavior is undefined.
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable throwable) Implements java. Doc from java. Method invoked upon an unrecoverable error encountered by a Publisher or Subscription, after which no other Subscriber methods are invoked by the Subscription. If this method itself throws an exception, resulting behavior is undefined.
| |
| onNext | back to summary |
|---|---|
| public void onNext(List<ByteBuffer> item) Implements java. Doc from java. Method invoked with a Subscription's next item. If this method throws an exception, resulting behavior is not guaranteed, but may cause the Subscription to be cancelled.
| |
| onSubscribe | back to summary |
|---|---|
| public void onSubscribe(Flow. Implements java. Doc from java. Method invoked prior to invoking any other Subscriber methods for the given Subscription. If this method throws an exception, resulting behavior is not guaranteed, but may cause the Subscription not to be established or to be cancelled. Typically, implementations of this method invoke
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final ConcurrentLinkedQueue | |
| pack-priv volatile RawChannelTube. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | subscribe(Flow.
Implements java. Adds the given Subscriber if possible. |
| events | back to summary |
|---|---|
| pack-priv final ConcurrentLinkedQueue<RawChannel. | |
| writeSubscription | back to summary |
|---|---|
| pack-priv volatile RawChannelTube. | |
| WritePublisher | back to summary |
|---|---|
| pack-priv WritePublisher() | |
| subscribe | back to summary |
|---|---|
| public void subscribe(Flow. Implements java. Doc from java. Adds the given Subscriber if possible. If already
subscribed, or the attempt to subscribe fails due to policy
violations or errors, the Subscriber's
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv volatile boolean | |
| pack-priv final Demand | |
| pack-priv final Flow. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | cancel()
Implements java. Causes the Subscriber to (eventually) stop receiving messages. |
| public void | request(long n)
Implements java. Adds the given number |
| cancelled | back to summary |
|---|---|
| pack-priv volatile boolean cancelled | |
| demand | back to summary |
|---|---|
| pack-priv final Demand demand | |
| subscriber | back to summary |
|---|---|
| pack-priv final Flow. | |
| WriteSubscription | back to summary |
|---|---|
| pack-priv WriteSubscription(Flow. | |
| cancel | back to summary |
|---|---|
| public void cancel() Implements java. Doc from java. Causes the Subscriber to (eventually) stop receiving
messages. Implementation is best-effort -- additional
messages may be received after invoking this method.
A cancelled subscription need not ever receive an
| |
| request | back to summary |
|---|---|
| public void request(long n) Implements java. Doc from java. Adds the given number
| |