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(java.lang.String collection)
Health check that sends a ping to the Orchestrate service.
|
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(java.lang.String collection)
throws java.io.IOException
collection - The name of collection to ping.java.io.IOException - If the health check 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.