public final class StrategyInfluencerChainBuilder
extends Object
HttpExecutionStrategyInfluencer.| Constructor and Description |
|---|
StrategyInfluencerChainBuilder()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
append(HttpExecutionStrategyInfluencer next)
Append another
HttpExecutionStrategyInfluencer to this chain. |
boolean |
appendIfInfluencer(Object mayBeInfluencer)
If the passed
mayBeInfluencer is an HttpExecutionStrategyInfluencer then add it to this chain. |
HttpExecutionStrategyInfluencer |
build()
Builds this chain and returns the head
HttpExecutionStrategyInfluencer for the chain. |
HttpExecutionStrategyInfluencer |
build(HttpExecutionStrategy transportStrategy)
Builds this chain and returns the head
HttpExecutionStrategyInfluencer for the chain. |
StrategyInfluencerChainBuilder |
copy()
Creates a deep copy of this
StrategyInfluencerChainBuilder. |
void |
prepend(HttpExecutionStrategyInfluencer influencer)
Adds the passed
HttpExecutionStrategyInfluencer to the head of this chain. |
boolean |
prependIfInfluencer(Object mayBeInfluencer)
If the passed
mayBeInfluencer is an HttpExecutionStrategyInfluencer then add it to the head of
this chain. |
public StrategyInfluencerChainBuilder()
public void prepend(HttpExecutionStrategyInfluencer influencer)
HttpExecutionStrategyInfluencer to the head of this chain.influencer - HttpExecutionStrategyInfluencer to add.IndexOutOfBoundsException - If the passed index is invalid.public boolean prependIfInfluencer(Object mayBeInfluencer)
mayBeInfluencer is an HttpExecutionStrategyInfluencer then add it to the head of
this chain.mayBeInfluencer - An object which may be an HttpExecutionStrategyInfluencer.true if the passed mayBeInfluencer was added to the chain.IndexOutOfBoundsException - If the passed index is invalid.public void append(HttpExecutionStrategyInfluencer next)
HttpExecutionStrategyInfluencer to this chain.next - HttpExecutionStrategyInfluencer to append.public boolean appendIfInfluencer(Object mayBeInfluencer)
mayBeInfluencer is an HttpExecutionStrategyInfluencer then add it to this chain.mayBeInfluencer - An object which may be an HttpExecutionStrategyInfluencer.true if the passed mayBeInfluencer was added to the chain.public StrategyInfluencerChainBuilder copy()
StrategyInfluencerChainBuilder.StrategyInfluencerChainBuilder containing all the influencers added to this
StrategyInfluencerChainBuilder.public HttpExecutionStrategyInfluencer build(HttpExecutionStrategy transportStrategy)
HttpExecutionStrategyInfluencer for the chain. Invoking
HttpExecutionStrategyInfluencer.influenceStrategy(HttpExecutionStrategy) on the returned
HttpExecutionStrategyInfluencer will invoke the method on the entire chain before returning.transportStrategy - HttpExecutionStrategy for the transport, typically specified by the user in the
builders.HttpExecutionStrategyInfluencer which is the head of the influencer chain.public HttpExecutionStrategyInfluencer build()
HttpExecutionStrategyInfluencer for the chain. Invoking
HttpExecutionStrategyInfluencer.influenceStrategy(HttpExecutionStrategy) on the returned
HttpExecutionStrategyInfluencer will invoke the method on the entire chain before returning.HttpExecutionStrategyInfluencer which is the head of the influencer chain.