Channel.
| Modifier and Type | Method and Description |
|---|---|
| public default Connection | Returns: this Connectionhandler instance handler)
Deprecated
as of 1.0.17.
Add a ChannelHandler with addHandlerFirst if of type of
io. otherwise with
addHandlerLast.
|
| public default Connection | Returns: this Connectionhandler name name, ChannelHandler handler instance handler)
Deprecated
as of 1.0.17.
Add a ChannelHandler with addHandlerFirst if of type of
io. otherwise with
addHandlerLast.
|
| public default Connection | Returns: this Connectionhandler instance handler)Add a |
| public default Connection | Returns: this Connectionhandler name name, ChannelHandler handler instance handler)Add a |
| public default Connection | Returns: this Connectionhandler instance handler)Add a |
| public default Connection | Returns: this Connectionhandler name name, ChannelHandler handler instance handler)Add a |
| public default <T extends Connection> T | Returns: a matchingConnection reference or nullconnection type to match to clazz)Return an existing |
| public default Connection | |
| public static Connection | Returns: an existingConnection wrapper or create a simple new onechannel to retrieve the connection reference from channel)Return an existing |
| public default NettyInbound | Returns: theNettyInbound read API from this connection.Return the |
| public default boolean | Returns: whether the underlyingConnection will be disposed on
terminal handler eventReturn false if it will force a close on terminal protocol events thus defeating any pooling strategy Return true (default) if it will release on terminal protocol events thus keeping alive the channel if possible. |
| public default Connection | Returns: this Connectionthe boolean flag to mark the persist)Channel as fully disposable
or reusable when a user handler has terminatedMark the underlying channel as persistent or not. |
| public default Connection | onDispose(Disposable
the close event handler onDispose)Overrides default reactor. Disposable to be invoked when the channel is closed.
|
| public default Connection | Returns: thisthe idle timeout idleTimeout, Runnable the idle timeout handler onReadIdle)Assign a |
| public default Mono | Returns: a Mono succeeding when aConnection has been terminatedReturn a Mono succeeding when a |
| public default Connection | Returns: thisthe idle timeout idleTimeout, Runnable the idle timeout handler onWriteIdle)Assign a |
| public default NettyOutbound | Returns: theNettyOutbound read API from this connection.Return the |
| public default boolean | Returns: true if bounda new connection reference connection)Bind a new |
| public default Connection | Returns: this Connectionhandler name name)Remove a named handler if present and return this context. |
| public default Connection | Returns: this Connectionhandler name name, ChannelHandler handler)Replace a named handler if present and return this context. |
| addHandler | back to summary |
|---|---|
| public default Connection addHandler(ChannelHandler handler)
Deprecated as of 1.0.17. Use Add a
If effectively added, the handler will be safely removed when the channel is made
inactive (pool release).
As the Connection object is available once the channel is in active state, events prior this state
will not be available (i.e.
| |
| addHandler | back to summary |
|---|---|
| public default Connection addHandler(String name, ChannelHandler handler)
Deprecated as of 1.0.17. Use Add a
If effectively added, the handler will be safely removed when the channel is made
inactive (pool release).
As the Connection object is available once the channel is in active state, events prior this state
will not be available (i.e.
| |
| addHandlerFirst | back to summary |
|---|---|
| public default Connection addHandlerFirst(ChannelHandler handler) Add a
If effectively added, the handler will be safely removed when the channel is made
inactive (pool release).
As the Connection object is available once the channel is in active state, events prior this state
will not be available (i.e.
| |
| addHandlerFirst | back to summary |
|---|---|
| public default Connection addHandlerFirst(String name, ChannelHandler handler) Add a
If effectively added, the handler will be safely removed when the channel is made
inactive (pool release).
As the Connection object is available once the channel is in active state, events prior this state
will not be available (i.e.
| |
| addHandlerLast | back to summary |
|---|---|
| public default Connection addHandlerLast(ChannelHandler handler) Add a
If effectively added, the handler will be safely removed when the channel is made
inactive (pool release).
As the Connection object is available once the channel is in active state, events prior this state
will not be available (i.e.
| |
| addHandlerLast | back to summary |
|---|---|
| public default Connection addHandlerLast(String name, ChannelHandler handler) Add a
If effectively added, the handler will be safely removed when the channel is made
inactive (pool release).
As the Connection object is available once the channel is in active state, events prior this state
will not be available (i.e.
| |
| as | back to summary |
|---|---|
| public default <T extends Connection> T as(Class<T> clazz) Return an existing
| |
| bind | back to summary |
|---|---|
| public default Connection bind() Bind the
| |
| from | back to summary |
|---|---|
| public static Connection from(Channel channel) Return an existing
| |
| inbound | back to summary |
|---|---|
| public default NettyInbound inbound() Return the
| |
| isPersistent | back to summary |
|---|---|
| public default boolean isPersistent() Return false if it will force a close on terminal protocol events thus defeating any pooling strategy Return true (default) if it will release on terminal protocol events thus keeping alive the channel if possible.
| |
| markPersistent | back to summary |
|---|---|
| public default Connection markPersistent(boolean persist) Mark the underlying channel as persistent or not. If false, it will force a close on terminal protocol events thus defeating any pooling strategy if true (default), it will release on terminal protocol events thus keeping alive the channel if possible.
| |
| onDispose | back to summary |
|---|---|
| public default Connection onDispose(Disposable onDispose) Overrides default reactor. Doc from reactor. Assigns a
| |
| onReadIdle | back to summary |
|---|---|
| public default Connection onReadIdle(long idleTimeout, Runnable onReadIdle) Assign a
| |
| onTerminate | back to summary |
|---|---|
| public default Mono Return a Mono succeeding when a
| |
| onWriteIdle | back to summary |
|---|---|
| public default Connection onWriteIdle(long idleTimeout, Runnable onWriteIdle) Assign a
| |
| outbound | back to summary |
|---|---|
| public default NettyOutbound outbound() Return the
| |
| rebind | back to summary |
|---|---|
| public default boolean rebind(Connection connection) Bind a new
| |
| removeHandler | back to summary |
|---|---|
| public default Connection removeHandler(String name) Remove a named handler if present and return this context.
| |
| replaceHandler | back to summary |
|---|---|
| public default Connection replaceHandler(String name, ChannelHandler handler) Replace a named handler if present and return this context.
If handler wasn't present, an Note if the new handler is of different type, dependent handling like
the "extractor" introduced via HTTP-based
| |