ResolvedAddress - The type of a resolved address that can be used for connecting.C - The type of connections created by this factory.public class DelegatingConnectionFactoryFilter<ResolvedAddress,C extends ListenableAsyncCloseable> extends Object implements ConnectionFactoryFilter<ResolvedAddress,C>
ConnectionFactoryFilter that delegates all methods to another ConnectionFactoryFilter.| Constructor and Description |
|---|
DelegatingConnectionFactoryFilter(ConnectionFactoryFilter<ResolvedAddress,C> delegate)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
ConnectionFactory<ResolvedAddress,C> |
create(ConnectionFactory<ResolvedAddress,C> original)
Decorates the passed
original ConnectionFactory to add the filtering logic. |
protected ConnectionFactoryFilter<ResolvedAddress,C> |
delegate()
Returns the
ConnectionFactoryFilter delegate. |
ExecutionStrategy |
requiredOffloads() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappend, identity, withStrategypublic DelegatingConnectionFactoryFilter(ConnectionFactoryFilter<ResolvedAddress,C> delegate)
delegate - ConnectionFactory to which all methods are delegated.public ConnectionFactory<ResolvedAddress,C> create(ConnectionFactory<ResolvedAddress,C> original)
ConnectionFactoryFilteroriginal ConnectionFactory to add the filtering logic.create in interface ConnectionFactoryFilter<ResolvedAddress,C extends ListenableAsyncCloseable>original - ConnectionFactory to filter.ConnectionFactory that contains the filtering logic.public ExecutionStrategy requiredOffloads()
ConnectionFactoryFilterIf the returned strategy extends ConnectExecutionStrategy then the connection creation or accept may
be offloaded.
If the returned strategy extends HttpExecutionStrategy then the HTTP execution strategy will be
applied to the connections created.
A utility class provides the ability to combine connect and HTTP execution strategies,
io.servicetalk.http.api.ConnectAndHttpExecutionStrategy.
requiredOffloads in interface ConnectionFactoryFilter<ResolvedAddress,C extends ListenableAsyncCloseable>requiredOffloads in interface ExecutionStrategyInfluencer<ExecutionStrategy>protected final ConnectionFactoryFilter<ResolvedAddress,C> delegate()
ConnectionFactoryFilter delegate.ConnectionFactoryFilter.