public interface KeyValueManagement
| Modifier and Type | Method and Description |
|---|---|
KeyValueStatus |
create(KeyValueConfiguration config)
Create a key value store.
|
void |
delete(java.lang.String bucketName)
Deletes an existing bucket.
|
KeyValueStatus |
getBucketInfo(java.lang.String bucketName)
Gets the info for an existing bucket.
|
java.util.List<java.lang.String> |
getBucketNames()
Get the list of bucket names.
|
KeyValueStatus |
update(KeyValueConfiguration config)
Update a key value store configuration.
|
KeyValueStatus create(KeyValueConfiguration config) throws java.io.IOException, JetStreamApiException
config - the key value configurationjava.io.IOException - covers various communication issues with the NATS
server such as timeout or interruptionJetStreamApiException - the request had an error related to the datajava.lang.IllegalArgumentException - the server is not JetStream enabledKeyValueStatus update(KeyValueConfiguration config) throws java.io.IOException, JetStreamApiException
config - the key value configurationjava.io.IOException - covers various communication issues with the NATS
server such as timeout or interruptionJetStreamApiException - the request had an error related to the datajava.lang.IllegalArgumentException - the server is not JetStream enabledjava.util.List<java.lang.String> getBucketNames()
throws java.io.IOException,
JetStreamApiException,
java.lang.InterruptedException
java.io.IOException - covers various communication issues with the NATS
server such as timeout or interruptionJetStreamApiException - the request had an error related to the datajava.lang.InterruptedException - if the thread is interruptedKeyValueStatus getBucketInfo(java.lang.String bucketName) throws java.io.IOException, JetStreamApiException
bucketName - the bucket name to usejava.io.IOException - covers various communication issues with the NATS
server such as timeout or interruptionJetStreamApiException - the request had an error related to the datavoid delete(java.lang.String bucketName)
throws java.io.IOException,
JetStreamApiException
bucketName - the stream name to use.java.io.IOException - covers various communication issues with the NATS
server such as timeout or interruptionJetStreamApiException - the request had an error related to the data