Package io.servicetalk.transport.api
Interface ConnectionAcceptorFactory
- All Superinterfaces:
ExecutionStrategyInfluencer<ConnectExecutionStrategy>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
@Deprecated
public interface ConnectionAcceptorFactory
extends ExecutionStrategyInfluencer<ConnectExecutionStrategy>
Deprecated.
A factory of
ConnectionAcceptor
.-
Method Summary
Modifier and TypeMethodDescriptiondefault ConnectionAcceptorFactory
append
(ConnectionAcceptorFactory before) Deprecated.Returns a composed function that first applies thebefore
function to its input, and then applies this function to the result.create
(ConnectionAcceptor original) Deprecated.Create aConnectionAcceptor
using the providedConnectionAcceptor
.static ConnectionAcceptorFactory
identity()
Deprecated.Returns a function that always returns its inputConnectionAcceptor
.default ConnectExecutionStrategy
Deprecated.Return anExecutionStrategy
that describes the offloads required by the influencer.static ConnectionAcceptorFactory
withStrategy
(ConnectionAcceptorFactory original, ConnectExecutionStrategy strategy) Deprecated.Wraps aConnectionAcceptorFactory
to return a specific execution strategy.
-
Method Details
-
create
Deprecated.Create aConnectionAcceptor
using the providedConnectionAcceptor
.- Parameters:
original
-ConnectionAcceptor
to filter- Returns:
ConnectionAcceptor
using the providedConnectionAcceptor
-
append
Deprecated.Returns a composed function that first applies thebefore
function 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
before
function and then applies this function
-
identity
Deprecated.Returns a function that always returns its inputConnectionAcceptor
.- Returns:
- a function that always returns its input
ConnectionAcceptor
.
-
requiredOffloads
Deprecated.Return anExecutionStrategy
that describes the offloads required by the influencer.The strategy returned will be applied to the connection acceptor instance returned by
create(ConnectionAcceptor)
. If offloading is not required then override to returnConnectExecutionStrategy.offloadNone()
- Specified by:
requiredOffloads
in interfaceExecutionStrategyInfluencer<ConnectExecutionStrategy>
- Returns:
- the
ExecutionStrategy
required by the influencer.
-
withStrategy
static ConnectionAcceptorFactory withStrategy(ConnectionAcceptorFactory original, ConnectExecutionStrategy strategy) Deprecated.Wraps aConnectionAcceptorFactory
to return a specific execution strategy.- Parameters:
original
- factory to be wrapped.strategy
- execution strategy for the wrapped factory- Returns:
- wrapped
ConnectionAcceptorFactory
-
LateConnectionAcceptor
instead.