Package io.servicetalk.transport.api
Interface ConnectionAcceptorFactory
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ConnectionAcceptorFactoryA factory ofDelegatingConnectionAcceptor.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ConnectionAcceptorFactoryappend(ConnectionAcceptorFactory before)Returns a composed function that first applies thebeforefunction to its input, and then applies this function to the result.ConnectionAcceptorcreate(ConnectionAcceptor original)Create aConnectionAcceptorusing the providedConnectionAcceptor.static ConnectionAcceptorFactoryidentity()Returns a function that always returns its inputConnectionAcceptor.
-
-
-
Method Detail
-
create
ConnectionAcceptor create(ConnectionAcceptor original)
Create aConnectionAcceptorusing the providedConnectionAcceptor.- Parameters:
original-ConnectionAcceptorto filter- Returns:
ConnectionAcceptorusing the providedConnectionAcceptor
-
append
default ConnectionAcceptorFactory append(ConnectionAcceptorFactory before)
Returns a composed function that first applies thebeforefunction to its input, and then applies this function to the result.The order of execution of these filters are in order of append. If 3 filters are added as follows:
factory.append(filter1).append(filter2).append(filter3)accepting a connection by a filter wrapped by this filter chain, the order of invocation of these filters will be:filter1 => filter2 => filter3- Parameters:
before- the function to apply before this function is applied- Returns:
- a composed function that first applies the
beforefunction and then applies this function
-
identity
static ConnectionAcceptorFactory identity()
Returns a function that always returns its inputConnectionAcceptor.- Returns:
- a function that always returns its input
ConnectionAcceptor.
-
-