public abstract class SphereClientDecorator extends Base implements SphereClient
SphereClients.| 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, waitof, ofprotected SphereClientDecorator(SphereClient delegate)
public void close()
SphereClientclose in interface SphereClientclose in interface AutoCloseablepublic <T> CompletionStage<T> execute(SphereRequest<T> sphereRequest)
SphereClientexecute in interface SphereClientT - type of the result for the requestsphereRequest - request to Composable Commerce to performpublic SphereApiConfig getConfig()
SphereClientgetConfig in interface SphereClientSphereApiConfig