org.epics.pvmanager
Class ChannelHandlerReadSubscription

java.lang.Object
  extended by org.epics.pvmanager.ChannelHandlerReadSubscription

public class ChannelHandlerReadSubscription
extends java.lang.Object

Groups all the parameters required to add a reader to a ChannelHandler.

Author:
carcassi

Constructor Summary
ChannelHandlerReadSubscription(Collector<?> collector, ValueCache<?> cache, ExceptionHandler handler, Collector<java.lang.Boolean> connCollector, ValueCache<java.lang.Boolean> connCache)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 ValueCache<?> getCache()
          The cache to update when a new value is available.
 Collector<?> getCollector()
          The collector to lock and notify when a new value is available.
 ValueCache<java.lang.Boolean> getConnCache()
          The cache to update whenever the connection state changes.
 Collector<java.lang.Boolean> getConnCollector()
          The collector to lock and notify whenever the connection state changes.
 ExceptionHandler getHandler()
          The handler to notify whenever an exception is thrown.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelHandlerReadSubscription

public ChannelHandlerReadSubscription(Collector<?> collector,
                                      ValueCache<?> cache,
                                      ExceptionHandler handler,
                                      Collector<java.lang.Boolean> connCollector,
                                      ValueCache<java.lang.Boolean> connCache)
Method Detail

getCollector

public Collector<?> getCollector()
The collector to lock and notify when a new value is available.

Returns:
the value collector

getCache

public ValueCache<?> getCache()
The cache to update when a new value is available.

Returns:
the value cache

getHandler

public ExceptionHandler getHandler()
The handler to notify whenever an exception is thrown.

Returns:
the exception handler

getConnCollector

public Collector<java.lang.Boolean> getConnCollector()
The collector to lock and notify whenever the connection state changes.

Returns:
the connection state collector

getConnCache

public ValueCache<java.lang.Boolean> getConnCache()
The cache to update whenever the connection state changes.

Returns:
the connection state cache

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object