public enum UpdateMode extends Enum<UpdateMode>
Enum Constant and Description |
---|
SIMPLE
Simple Update Mode.
|
SIMPLE_SYNC
Simple synchronous Update Mode.
|
STREAMING
Streaming Update Mode.
|
Modifier and Type | Method and Description |
---|---|
static UpdateMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UpdateMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UpdateMode SIMPLE
In this mode each publish will be a separate update of the topic sending the full value to the server. This allows for normal publishing and also applying patches to JSON topics.
The updates are sent asynchronously to server. If the update fails with transient, retryable error, retry will be performed with last value, set for the topic.
public static final UpdateMode SIMPLE_SYNC
In this mode each publish will be a separate update of the topic sending the full value to the server. This allows for normal publishing and also applying patches to JSON topics.
The updates are sent synchronously to server. If the update fails with transient, retryable error, retry will be performed. Only after all retry attempts exhausts, successive update will be published to server. Hence, this mode can be less performant compared to others.
public static final UpdateMode STREAMING
In this mode sending updates to the server takes advantage of the Diffusion 'delta' capabilities so that only changes to the value are sent to the server thus significantly reducing bandwidth.
The updates are sent asynchronously to server. If the update fails with transient, retryable error, retry will be performed with last value set to the update stream.
In this mode it is not possible to apply patches to JSON topics.
public static UpdateMode[] values()
for (UpdateMode c : UpdateMode.values()) System.out.println(c);
public static UpdateMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2024 DiffusionData Limited. All rights reserved.