Package | Description |
---|---|
com.pushtechnology.diffusion.client.features |
Client API : Standard Features.
|
Modifier and Type | Interface and Description |
---|---|
static interface |
UpdateConstraint.PartialJSON
A constraint requiring the current value of a
JSON topic to match the partially described
value. |
Modifier and Type | Method and Description |
---|---|
UpdateConstraint |
UpdateConstraint.and(UpdateConstraint other)
Returns a composed constraint that represents a logical AND of this
constraint and another.
|
UpdateConstraint |
UpdateConstraint.Factory.locked(Session.SessionLock lock)
Create a constraint requiring a lock to be held by the session.
|
UpdateConstraint |
UpdateConstraint.Factory.noTopic()
Create a constraint requiring the path to have no topic.
|
UpdateConstraint |
UpdateConstraint.Factory.noValue()
Create a constraint requiring the topic to have no value.
|
<V> UpdateConstraint |
UpdateConstraint.Factory.value(V value)
Create a constraint requiring the current value of a topic to match
the supplied value.
|
Modifier and Type | Method and Description |
---|---|
<T> CompletableFuture<TopicCreationResult> |
TopicUpdate.addAndSet(String path,
TopicSpecification specification,
Class<T> valueClass,
T value,
UpdateConstraint constraint)
Ensures a topic exists and sets its value.
|
UpdateConstraint |
UpdateConstraint.and(UpdateConstraint other)
Returns a composed constraint that represents a logical AND of this
constraint and another.
|
CompletableFuture<TopicUpdate.JsonPatchResult> |
TopicUpdate.applyJsonPatch(String path,
String patch,
UpdateConstraint constraint)
Applies a JSON Patch to a JSON topic.
|
<T> UpdateStream<T> |
TopicUpdate.createUpdateStream(String path,
Class<T> valueClass,
UpdateConstraint constraint)
Creates an
update stream to use for updating a
specific topic. |
<T> UpdateStream<T> |
TopicUpdate.createUpdateStream(String path,
TopicSpecification specification,
Class<T> valueClass,
UpdateConstraint constraint)
Creates an
update stream to use for creating and
updating a specific topic. |
<T> CompletableFuture<?> |
TopicUpdate.set(String path,
Class<T> valueClass,
T value,
UpdateConstraint constraint)
Sets the topic to a specified value.
|
Copyright © 2022 Push Technology Ltd. All Rights Reserved.