Package reactor.netty.channel
Interface ChannelOperations.OnSetup
- Enclosing class:
- ChannelOperations<INBOUND extends NettyInbound,
OUTBOUND extends NettyOutbound>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A
ChannelOperations
factory.-
Method Summary
Modifier and TypeMethodDescription@Nullable ChannelOperations<?,
?> create
(Connection c, ConnectionObserver listener, @Nullable Object msg) Create a newChannelOperations
given a netty channel, a parentConnectionObserver
and an optional message (nullable).static ChannelOperations.OnSetup
empty()
Return an empty, no-op factory.
-
Method Details
-
empty
Return an empty, no-op factory.- Returns:
- an empty, no-op factory
-
create
@Nullable ChannelOperations<?,?> create(Connection c, ConnectionObserver listener, @Nullable Object msg) Create a newChannelOperations
given a netty channel, a parentConnectionObserver
and an optional message (nullable).- Parameters:
c
- aConnection
listener
- aConnectionObserver
msg
- an optional message- Returns:
- the new
ChannelOperations
-