@FunctionalInterface
public interface ConnectionAcceptorFactory
DelegatingConnectionAcceptor
.Modifier and Type | Method and Description |
---|---|
default ConnectionAcceptorFactory |
append(ConnectionAcceptorFactory before)
Returns a composed function that first applies the
before function to its input, and then applies
this function to the result. |
ConnectionAcceptor |
create(ConnectionAcceptor original)
Create a
ConnectionAcceptor using the provided ConnectionAcceptor . |
static ConnectionAcceptorFactory |
identity()
Returns a function that always returns its input
ConnectionAcceptor . |
ConnectionAcceptor create(ConnectionAcceptor original)
ConnectionAcceptor
using the provided ConnectionAcceptor
.original
- ConnectionAcceptor
to filterConnectionAcceptor
using the provided ConnectionAcceptor
default ConnectionAcceptorFactory append(ConnectionAcceptorFactory before)
before
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
before
- the function to apply before this function is appliedbefore
function and then applies this functionstatic ConnectionAcceptorFactory identity()
ConnectionAcceptor
.ConnectionAcceptor
.