public interface Client
| Modifier and Type | Method and Description |
|---|---|
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.
|
void close()
throws java.io.IOException
java.io.IOException - If resources couldn't be stopped.OrchestrateRequest<java.lang.Boolean> deleteCollection(java.lang.String collection)
Usage:
client.deleteCollection("someCollection").get();
collection - The name of collection to delete.EventResource event(java.lang.String collection, java.lang.String key)
collection - The name of the collection.key - The name of the key with events.KvResource kv(java.lang.String collection, java.lang.String key)
collection - The name of the collection.key - The name of a key.KvListResource listCollection(java.lang.String collection)
collection - The name of the collection.void ping()
throws java.io.IOException
java.io.IOException - If the health check failed.@Deprecated
void ping(java.lang.String collection)
throws java.io.IOException
collection - The name of the collection.java.io.IOException - If the ping request failed.ping()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();
collection - The name of the collection.value - The object to store.java.io.IOException - If the request failed.RelationResource relation(java.lang.String collection, java.lang.String key)
collection - The name of the collection.key - The name of the key.CollectionSearchResource searchCollection(java.lang.String collection)
collection - The name of the collection to search.