@Tags(value={"distributed","client","cluster","set","cache"}) @CapabilityDescription(value="Provides the ability to communicate with a DistributedSetCacheServer. This allows multiple nodes to coordinate state with a single remote entity.") public interface DistributedSetCacheClient extends ControllerService
Set
.Modifier and Type | Method and Description |
---|---|
<T> boolean |
addIfAbsent(T value,
Serializer<T> serializer)
Adds the specified value to the cache, serializing the value with the
given
Serializer . |
void |
close()
Attempts to notify the server that we are finished communicating with it
and cleans up resources
|
<T> boolean |
contains(T value,
Serializer<T> serializer) |
<T> boolean |
remove(T value,
Serializer<T> serializer)
Removes the given value from the cache, if it is present.
|
initialize, isStateful
getIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate
<T> boolean addIfAbsent(T value, Serializer<T> serializer) throws IOException
Serializer
.T
- typevalue
- valueserializer
- serializerIOException
- if unable to communicate with the remote instance<T> boolean contains(T value, Serializer<T> serializer) throws IOException
T
- typevalue
- valueserializer
- serializertrue
, else returns false
IOException
- if unable to communicate with the remote instance<T> boolean remove(T value, Serializer<T> serializer) throws IOException
T
- typevalue
- valueserializer
- serializertrue
if the value is removed, false
if
the value did not exist in the cacheIOException
- exvoid close() throws IOException
IOException
- exCopyright © 2023 Apache NiFi Project. All rights reserved.