public class BaseSyncClient extends Object
Modifier | Constructor and Description |
---|---|
protected |
BaseSyncClient(ClientBuilderBase<?,?> builder,
AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
CircuitBreakerConfiguration defaultCircuitBreaker) |
Modifier and Type | Method and Description |
---|---|
protected <REQ extends BmcRequest<?>,RESP extends BmcResponse,RESP_BUILDER extends BmcResponse.Builder<RESP>> |
clientCall(REQ request,
Supplier<RESP_BUILDER> responseBuilder) |
void |
close() |
protected ClientConfigurator |
getDefaultConfigurator() |
String |
getEndpoint() |
void |
refreshClient()
Rebuild the backing
HttpClient . |
void |
setEndpoint(String endpoint) |
protected void |
setRegion(Region region) |
protected void |
setRegion(String regionId) |
protected BaseSyncClient(ClientBuilderBase<?,?> builder, AbstractAuthenticationDetailsProvider authenticationDetailsProvider, CircuitBreakerConfiguration defaultCircuitBreaker)
protected <REQ extends BmcRequest<?>,RESP extends BmcResponse,RESP_BUILDER extends BmcResponse.Builder<RESP>> ClientCall<REQ,RESP,RESP_BUILDER> clientCall(REQ request, Supplier<RESP_BUILDER> responseBuilder)
protected ClientConfigurator getDefaultConfigurator()
public final void setEndpoint(String endpoint)
public final String getEndpoint()
public final void refreshClient()
HttpClient
. This will call ClientConfigurator
s again, and
can be used to e.g. refresh the SSL certificate.protected void setRegion(Region region)
protected void setRegion(String regionId)
public final void close()
close
in interface AutoCloseable
Copyright © 2016–2023. All rights reserved.