public abstract class SphereClientDecorator extends Base implements SphereClient
SphereClient
s.Modifier | Constructor and Description |
---|---|
protected |
SphereClientDecorator(SphereClient delegate) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Shuts down the client to save resources like connections and threads.
|
<T> CompletionStage<T> |
execute(SphereRequest<T> sphereRequest)
Executes asynchronously a request to Composable Commerce.
|
SphereApiConfig |
getConfig()
Getter for the SphereApiConfig used for this client
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
of, of
protected SphereClientDecorator(SphereClient delegate)
public void close()
SphereClient
close
in interface SphereClient
close
in interface AutoCloseable
public <T> CompletionStage<T> execute(SphereRequest<T> sphereRequest)
SphereClient
execute
in interface SphereClient
T
- type of the result for the requestsphereRequest
- request to Composable Commerce to performpublic SphereApiConfig getConfig()
SphereClient
getConfig
in interface SphereClient
SphereApiConfig