public abstract class ValueReader extends Object
The path may be:
The wildcard quantifier may be used multiple times, like "person.leg[any].finger[any]" which returns all fingers from all legs.
Constructor and Description |
---|
ValueReader() |
Modifier and Type | Method and Description |
---|---|
abstract <T> void |
read(String path,
ValueCallback<T> callback)
Read the value of the attribute specified by the path and returns the result via the callback.
|
abstract <T> void |
read(String path,
ValueCollector<T> collector)
Read the value of the attribute specified by the path and returns the result directly to the collector.
|
public abstract <T> void read(String path, ValueCallback<T> callback) throws ValueReadingException
T
- Type of the value to readpath
- attribute to read the value fromcallback
- callback to call with the value. May be called more than once in case of wildcards.ValueReadingException
- in case of any reading errors. If an exception occurs the callback won't
be called at allpublic abstract <T> void read(String path, ValueCollector<T> collector) throws ValueReadingException
T
- Type of the value to readpath
- attribute to read the value fromcollector
- collector to collect the result with. May collect more than one result in case of wildcards.ValueReadingException
- in case of any reading errors. If an exception occurs the collector won't
be called at allCopyright © 2018 Hazelcast, Inc.. All Rights Reserved.