Package io.servicetalk.http.api
Class StrategyInfluencerChainBuilder
java.lang.Object
io.servicetalk.http.api.StrategyInfluencerChainBuilder
- All Implemented Interfaces:
ExecutionStrategyInfluencer<HttpExecutionStrategy>
@Deprecated
public final class StrategyInfluencerChainBuilder
extends Object
implements ExecutionStrategyInfluencer<HttpExecutionStrategy>
Deprecated.
A chain of
ExecutionStrategyInfluencer
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.Append anotherHttpExecutionStrategyInfluencer
to this chain.void
append
(ExecutionStrategyInfluencer<?> next) Deprecated.Append anotherExecutionStrategyInfluencer
to this chain.boolean
appendIfInfluencer
(Object mayBeInfluencer) Deprecated.If the passedmayBeInfluencer
is anExecutionStrategyInfluencer
then add it to this chain.build()
Deprecated.Builds this chain and returns a computedHttpExecutionStrategyInfluencer
that reflects the strategy of the entire chain.build
(HttpExecutionStrategy transportStrategy) Deprecated.Builds this chain and returns the headHttpExecutionStrategyInfluencer
for the chain.copy()
Deprecated.Creates a deep copy of thisStrategyInfluencerChainBuilder
.void
prepend
(HttpExecutionStrategyInfluencer influencer) Deprecated.Adds the passedHttpExecutionStrategyInfluencer
to the head of this chain.void
prepend
(ExecutionStrategyInfluencer<?> influencer) Deprecated.Adds the passedExecutionStrategyInfluencer
to the head of this chain.boolean
prependIfInfluencer
(Object mayBeInfluencer) Deprecated.If the passedmayBeInfluencer
is anHttpExecutionStrategyInfluencer
then add it to the head of this chain.Deprecated.Builds this chain and returns computedHttpExecutionStrategy
for the entire chain.
-
Constructor Details
-
StrategyInfluencerChainBuilder
public StrategyInfluencerChainBuilder()Deprecated.Creates a new instance.
-
-
Method Details
-
prepend
Deprecated.Adds the passedExecutionStrategyInfluencer
to the head of this chain.- Parameters:
influencer
-HttpExecutionStrategyInfluencer
to add.
-
prepend
Deprecated.Adds the passedHttpExecutionStrategyInfluencer
to the head of this chain.- Parameters:
influencer
-HttpExecutionStrategyInfluencer
to add.
-
prependIfInfluencer
Deprecated.If the passedmayBeInfluencer
is anHttpExecutionStrategyInfluencer
then add it to the head of this chain.- Parameters:
mayBeInfluencer
- An object which may be anExecutionStrategyInfluencer
.- Returns:
true
if the passedmayBeInfluencer
was added to the chain.
-
append
Deprecated.Append anotherExecutionStrategyInfluencer
to this chain.- Parameters:
next
-ExecutionStrategyInfluencer
to append.
-
append
Deprecated.Append anotherHttpExecutionStrategyInfluencer
to this chain.- Parameters:
next
-HttpExecutionStrategyInfluencer
to append.
-
appendIfInfluencer
Deprecated.If the passedmayBeInfluencer
is anExecutionStrategyInfluencer
then add it to this chain.- Parameters:
mayBeInfluencer
- A reference which may be anExecutionStrategyInfluencer
.- Returns:
true
if the passedmayBeInfluencer
was added to the chain.
-
copy
Deprecated.Creates a deep copy of thisStrategyInfluencerChainBuilder
.- Returns:
- A new
StrategyInfluencerChainBuilder
containing all the influencers added to thisStrategyInfluencerChainBuilder
.
-
build
Deprecated.Builds this chain and returns the headHttpExecutionStrategyInfluencer
for the chain. InvokingHttpExecutionStrategyInfluencer.requiredOffloads()
on the returnedHttpExecutionStrategyInfluencer
will invoke the method on the entire chain before returning.- Parameters:
transportStrategy
-HttpExecutionStrategy
for the transport, typically specified by the user in the builders.- Returns:
HttpExecutionStrategyInfluencer
which is the head of the influencer chain.
-
build
Deprecated.Builds this chain and returns a computedHttpExecutionStrategyInfluencer
that reflects the strategy of the entire chain.- Returns:
HttpExecutionStrategyInfluencer
which is the head of the influencer chain.
-
requiredOffloads
Deprecated.Builds this chain and returns computedHttpExecutionStrategy
for the entire chain.- Specified by:
requiredOffloads
in interfaceExecutionStrategyInfluencer<HttpExecutionStrategy>
- Returns:
- computed
HttpExecutionStrategy
of the influencer chain.
-
ExecutionStrategy
directly instead.