Attempts to create a session in Consul.
Attempts to create a session in Consul.
Data to store on the session
The created session id
Deletes the provided key This function is idempotent, i.e.
Deletes the provided key This function is idempotent, i.e. it will not fail even if the key does not exist
The key to remove
Success if managed to access Consul, then normally 'true'
Deletes the provided key This function is idempotent, i.e.
Deletes the provided key This function is idempotent, i.e. it will not fail even if the key does not exist
The key to remove
Success if managed to access Consul, then normally 'true'
Recursively deletes the provided key and all its descendants/children.
Recursively deletes the provided key and all its descendants/children. This function is idempotent, i.e. it will not fail even if the key does not exist
The key to remove
Success if managed to access Consul, then normally 'true'
Attempts to destroy a session in Consul.
Attempts to destroy a session in Consul. This function is idempotent, i.e. it will not fail even if the session does not exist
The session to destroy
Attempts to read the value for the provided key.
Attempts to read the value for the provided key.
The full path of the key, e.g foo/bar/my-config
Success if managed to access Consul, then Some if the value was found, None else
Attempts to recursively read the key/values for the provided key path
Attempts to recursively read the key/values for the provided key path
The path to query
Success if managed to access Consul, then Some if the key was found followed by the stream of key/values matching the query
Blocks and waits for provided key to changed value.
Blocks and waits for provided key to changed value. This is done by waiting until the ModifyIndex on the key has gone passed the provided modifyIndex. If the provided index is lower than what is represented in Consul this function returns immediately. The function always returns the value of the key even if the provided wait time has been exceeded.
The full path of the key, e.g foo/bar/my-config
The modification index value to block on
Max wait time
Success if managed to access Consul, then Some if the value was found, None else
Attempts to read the key/value(s) as specified by the provided data.
Attempts to read the key/value(s) as specified by the provided data. The result is a stream since if recursive is requested then there could be more than one key returned
The key to query
Success if managed to access Consul, then Some if the key was found followed by the stream of key/values matching the query
Attempts to renew a session in Consul.
Attempts to renew a session in Consul.
The session to renew
The session data
Attempts to store a value on the provided key.
Attempts to store a value on the provided key. The exact behavior of the storage operation is determined by the values set on the provided SetKeyValue
The key value data
Success if managed to access Consul, then true id the key/value was set
Attempts to store a value on the provided key.
Attempts to store a value on the provided key. This function will always write to the key irrespective if there is an owning session.
The full path of the key, e.g foo/bar/my-config
The optional value to store on the key
Success if managed to access Consul, then true id the key/value was set
Attempts to store a value on the provided key only if the key did not previously exist.
Attempts to store a value on the provided key only if the key did not previously exist.
The full path of the key, e.g foo/bar/my-config
The optional value to store on the key
Success if managed to access Consul, then true id the key/value was set
(Since version ) see corresponding Javadoc for more information.
Encapsulates functions towards Consul.