public class BmcRequest extends Object
Constructor and Description |
---|
BmcRequest() |
Modifier and Type | Method and Description |
---|---|
com.oracle.bmc.util.internal.Consumer<javax.ws.rs.client.Invocation.Builder> |
getInvocationCallback()
Optional consumer that will be invoked before the actual REST call is made.
|
RetryConfiguration |
getRetryConfiguration()
Optional
RetryConfiguration to use for this request. |
void |
setInvocationCallback(com.oracle.bmc.util.internal.Consumer<javax.ws.rs.client.Invocation.Builder> invocationCallback)
Optional consumer that will be invoked before the actual REST call is made.
|
void |
setRetryConfiguration(RetryConfiguration retryConfiguration)
Optional
RetryConfiguration to use for this request. |
public void setInvocationCallback(com.oracle.bmc.util.internal.Consumer<javax.ws.rs.client.Invocation.Builder> invocationCallback)
Optional consumer that will be invoked before the actual REST call is made. Allows callers to alter/add any parameters that were not directly configurable otherwise. Attempting to invoke or build the builder in any way will result in an exception.
For the Invocation.Builder#headers(javax.ws.rs.core.MultivaluedMap)
method, note that modifying the passed in headers
map after the call does not have any effect on headers set.
public com.oracle.bmc.util.internal.Consumer<javax.ws.rs.client.Invocation.Builder> getInvocationCallback()
Optional consumer that will be invoked before the actual REST call is made. Allows callers to alter/add any parameters that were not directly configurable otherwise. Attempting to invoke or build the builder in any way will result in an exception.
For the Invocation.Builder#headers(javax.ws.rs.core.MultivaluedMap)
method, note that modifying the passed in headers
map after the call does not have any effect on headers set.
public void setRetryConfiguration(RetryConfiguration retryConfiguration)
Optional RetryConfiguration
to use for this request.
Note: This overrides the retry configurations set on the client (via ClientConfiguration
and SDK level (via Retriers.setDefaultRetryConfiguration(RetryConfiguration)
public RetryConfiguration getRetryConfiguration()
Optional RetryConfiguration
to use for this request.
Note: This overrides the retry configurations set on the client (via ClientConfiguration
and SDK level (via Retriers.setDefaultRetryConfiguration(RetryConfiguration)
Copyright © 2016–2019. All rights reserved.