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)
Returns if the given value is present in the cache and if so returns
true , else returns false |
<T> boolean |
remove(T value,
Serializer<T> serializer)
Removes the given value from the cache, if it is present.
|
initialize
getIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate
<T> boolean addIfAbsent(T value, Serializer<T> serializer) throws IOException
Serializer
.T
- value
- serializer
- IOException
- if unable to communicate with the remote instance<T> boolean contains(T value, Serializer<T> serializer) throws IOException
true
, else returns false
T
- value
- serializer
- IOException
- if unable to communicate with the remote instance<T> boolean remove(T value, Serializer<T> serializer) throws IOException
T
- value
- serializer
- true
if the value is removed, false
if
the value did not exist in the cacheIOException
void close() throws IOException
IOException
Copyright © 2015 Apache NiFi (incubating). All rights reserved.