| Modifier and Type | Class and Description |
|---|---|
static class |
OrchestrateClient.Builder
Builder used to create
Client instances. |
| Constructor and Description |
|---|
OrchestrateClient(java.lang.String apiKey)
Create a new
client with the specified apiKey and default
JacksonMapper. |
OrchestrateClient(java.lang.String apiKey,
JacksonMapper mapper)
Create a new
client with the specified apiKey and mapper. |
OrchestrateClient(java.lang.String apiKey,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Create a new
client with the specified apiKey and objectMapper. |
| Modifier and Type | Method and Description |
|---|---|
static OrchestrateClient.Builder |
builder(java.lang.String apiKey)
A new builder to create an
OrchestrateClient with default
settings. |
void |
close()
Stops the thread pool and closes all connections in use by all the
operations.
|
OrchestrateRequest<java.lang.Boolean> |
deleteCollection(java.lang.String collection)
Delete all KV objects from a collection in the Orchestrate service.
|
EventResource |
event(java.lang.String collection,
java.lang.String key)
The resource for the event features in the Orchestrate API.
|
KvResource |
kv(java.lang.String collection,
java.lang.String key)
The resource for the KV features in the Orchestrate API.
|
KvListResource |
listCollection(java.lang.String collection)
The resource for the KV list features in the Orchestrate API.
|
void |
ping()
Health check that sends a ping to the Orchestrate service.
|
void |
ping(java.lang.String collection)
Deprecated.
|
OrchestrateRequest<KvMetadata> |
postValue(java.lang.String collection,
java.lang.Object value)
Store an object by value in the collection specified to the Orchestrate service
which will auto-generate a key for it.
|
RelationResource |
relation(java.lang.String collection,
java.lang.String key)
The resource for the relation features in the Orchestrate API.
|
CollectionSearchResource |
searchCollection(java.lang.String collection)
The resource for the collection search features in the Orchestrate API.
|
public OrchestrateClient(java.lang.String apiKey)
client with the specified apiKey and default
JacksonMapper.
Equivalent to:
Client client = OrchestrateClient.builder("your api key").build();
apiKey - An API key for the Orchestrate.io service.public OrchestrateClient(java.lang.String apiKey,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
client with the specified apiKey and objectMapper.apiKey - An API key for the Orchestrate.io service.objectMapper - The Jackson JSON mapper to marshall data with.public OrchestrateClient(java.lang.String apiKey,
JacksonMapper mapper)
client with the specified apiKey and mapper.apiKey - An API key for the Orchestrate.io service.mapper - The mapper to marshall data with.public void close()
throws java.io.IOException
public OrchestrateRequest<java.lang.Boolean> deleteCollection(java.lang.String collection)
Usage:
client.deleteCollection("someCollection").get();
deleteCollection in interface Clientcollection - The name of collection to delete.public EventResource event(java.lang.String collection, java.lang.String key)
public KvResource kv(java.lang.String collection, java.lang.String key)
public KvListResource listCollection(java.lang.String collection)
listCollection in interface Clientcollection - The name of the collection.public void ping()
throws java.io.IOException
@Deprecated
public void ping(java.lang.String collection)
throws java.io.IOException
ping in interface Clientjava.io.IOExceptionClient.ping()public OrchestrateRequest<KvMetadata> postValue(java.lang.String collection, java.lang.Object value) throws java.io.IOException
Usage:
DomainObject obj = new DomainObject();
KvMetadata kvMetadata =
client.postValue("someCollection", obj).get();
public RelationResource relation(java.lang.String collection, java.lang.String key)
public CollectionSearchResource searchCollection(java.lang.String collection)
searchCollection in interface Clientcollection - The name of the collection to search.public static OrchestrateClient.Builder builder(java.lang.String apiKey)
OrchestrateClient with default
settings.apiKey - An API key for the Orchestrate.io service.Builder with default settings.