|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.epics.pvmanager.DataSource.ValueProcessor<P,V>
P
- event payload typeV
- requested value typepublic abstract static class DataSource.ValueProcessor<P,V>
Helper class that contains the logic for processing a new value. It takes care of locking the collector and calling the disconnect when appropriate.
Constructor Summary | |
---|---|
DataSource.ValueProcessor(Collector collector,
ValueCache<V> cache,
ExceptionHandler exceptionHandler)
Creates a value processor using the collector and the value cache given. |
Method Summary | |
---|---|
abstract void |
close()
Called by the framework if this callback is no longer needed. |
void |
processValue(P payload)
Processes the given payload, by locking the collector, updating the cache and notifying the collector. |
abstract boolean |
updateCache(P payload,
ValueCache<V> cache)
Implements the update of the cache given the protocol specific payload. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataSource.ValueProcessor(Collector collector, ValueCache<V> cache, ExceptionHandler exceptionHandler)
collector
- collector to notify of updatescache
- cache where to put the new dataexceptionHandler
- where to forward exceptionsMethod Detail |
---|
public final void processValue(P payload)
payload
- payload for the data source specific eventpublic abstract void close()
public abstract boolean updateCache(P payload, ValueCache<V> cache)
payload
- the payload of the notificationcache
- the cache to update
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |