public enum HttpPipelinePosition extends Enum<HttpPipelinePosition>
HttpPipeline
to place an HttpPipelinePolicy
.Enum Constant and Description |
---|
PER_CALL
Policy is placed before a
RetryPolicy and will only be invoked once per pipeline invocation (service
call). |
PER_RETRY
Policy is placed after a
RetryPolicy and will be invoked every time a request is sent. |
Modifier and Type | Method and Description |
---|---|
static HttpPipelinePosition |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpPipelinePosition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpPipelinePosition PER_CALL
RetryPolicy
and will only be invoked once per pipeline invocation (service
call).public static final HttpPipelinePosition PER_RETRY
RetryPolicy
and will be invoked every time a request is sent.
The policy will be invoked at least once for the initial service call and each time the request is retried.
public static HttpPipelinePosition[] values()
public static HttpPipelinePosition valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2021 Microsoft Corporation. All rights reserved.