| Modifier and Type | Class and Description |
|---|---|
| public static interface |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Connection | |
| pack-priv static final ChannelOperations. | |
| pack-priv final FluxReceive | |
| pack-priv final ConnectionObserver | |
| pack-priv boolean | |
| pack-priv static final Logger | |
| pack-priv String | |
| pack-priv final Sinks. | |
| pack-priv static final AtomicReferenceFieldUpdater | |
| pack-priv volatile Subscription | |
| pack-priv final String |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | ChannelOperations(Connection
the new connection, ConnectionObserver Connection connectionthe events callback listener)Create a new |
| Modifier and Type | Method and Description |
|---|---|
| public static void | addMetricsHandler(Channel
the channel ch, ChannelMetricsRecorder the configured metrics recorder recorder, SocketAddress the remote address remoteAddress, boolean true if onServer)ChannelMetricsRecorder is for the server, false if it is for the clientAdd |
| public static void | addReactiveBridge(Channel
the channel to bridge ch, ChannelOperations.the operations factory to invoke on channel active opsFactory,the listener to forward connection events to listener)Add |
| protected void | |
| public BufferAllocator | |
| public <T extends Connection> T | as(Class<T>
connection type to match to clazz)Overrides default reactor. Connection that must match the given type wrapper or
null.
|
| protected String | Returns: the string to be loggedthe object to be transformed o)Transforms the object to a string for debug logs. |
| public String | asLongText()
Implements reactor. |
| public String | asShortText()
Implements reactor. |
| public final Channel | |
| protected final Connection | Returns: the delegate IOConnection for low-level IO accessReturn the delegate IO |
| public Context | currentContext()
Overrides default reactor. Context from dependent components which can include downstream
operators during subscribing or a terminal org..
|
| public final void | |
| protected final void | |
| public void | dispose()
Overrides default reactor. Channel
|
| public CoreSubscriber | disposeSubscriber()
Overrides default reactor. CoreSubscriber that will dispose on complete or error
|
| protected final String | |
| public static ChannelOperations | get(Channel
the current ch)ChannelReturn the current |
| public NettyInbound | inbound()
Overrides default reactor. NettyInbound read API from this connection.
|
| protected String | |
| public final boolean | isDisposed()
Overrides default reactor. |
| public final boolean | Returns: true if inbound traffic is not expected anymoreReturn true if inbound traffic is not expected anymore |
| public final boolean | Returns: true if inbound traffic is not incoming or expected anymoreReturn true if inbound traffic is not incoming or expected anymore |
| public boolean | isPersistent()
Overrides default reactor. |
| public final boolean | Returns: true if dispose subscription has been terminatedReturn true if dispose subscription has been terminated |
| public final ConnectionObserver | Returns: the available parentConnectionObserverfor user-facing lifecycle
handlingReturn the available parent |
| public final void | |
| public final Mono | onDispose()
Overrides default reactor. Mono terminating with success when shutdown
successfully or error.
|
| public Connection | onDispose(final Disposable
the close event handler onDispose)Overrides default reactor. Disposable to be invoked when the channel is closed.
|
| public final void | onError(Throwable
the throwable signaled t)Implements org. |
| protected void | |
| protected void | |
| protected void | |
| protected final void | |
| protected void | onInboundNext(ChannelHandlerContext
the context ctx, Object the read payload msg)React on inbound |
| public final void | onNext(Void
the element signaled aVoid)Implements org. Publisher in response to requests to Subscription#request(long).
|
| protected void | |
| protected void | |
| public final void | onSubscribe(Subscription
the s)Subscription that allows requesting data via Subscription#request(long)Implements reactor. onNext(Object) before
calling Subscription#request(long).
|
| public final Mono | Returns: a Mono succeeding when aChannelOperations has been terminatedOverrides default reactor. ChannelOperations has been terminated
|
| public NettyOutbound | outbound()
Overrides default reactor. NettyOutbound write API from this connection.
|
| public BufferFlux | receive()
Implements reactor. Flux extension that allows for extra decoding operators
|
| public Flux | |
| public NettyOutbound | send(Publisher<? extends Buffer>
the dataStream publishing OUT items to write on this channel dataStream, Predicate<Buffer> that returns true if explicit flush operation is needed after that buffer predicate)Implements reactor. |
| public NettyOutbound | sendObject(Publisher<?>
the dataStream publishing items to write on this channel
or a simple pojo supported by configured Netty handlers dataStream, Predicate<Object> that returns true if explicit flush operation is needed after that object predicate)Implements reactor. |
| public NettyOutbound | sendObject(Object
the object to publish message)Implements reactor. |
| public <S> NettyOutbound | sendUsing(Callable<? extends S>
state generator sourceInput, BiFunction<? super Connection, ? super S, ?> input to send mappedInput, Consumer<? super S> state cleaner sourceCleanup)Implements reactor. Note Nesting any send* method is not supported. |
| protected final void | |
| public String | |
| public ChannelOperations | withConnection(Consumer<? super Connection>
connection callback withConnection)Implements reactor. Connection to operate on the
underlying Channel state.
|
| protected Throwable |