|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.epics.pvmanager.ChannelHandler
public abstract class ChannelHandler
Manages the connection for each channel of a data source.
Constructor Summary | |
---|---|
ChannelHandler(java.lang.String channelName)
Creates a new channel handler. |
Method Summary | |
---|---|
protected abstract void |
addMonitor(ChannelHandlerReadSubscription subscription)
Used by the data source to add a read request on the channel managed by this handler. |
protected abstract void |
addWriter(WriteCache<?> cache,
ExceptionHandler handler)
Used by the data source to prepare the channel managed by this handler for write. |
java.lang.String |
getChannelName()
Returns the name of the channel. |
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
Returns extra information about the channel, typically useful for debugging. |
abstract int |
getReadUsageCounter()
Returns how many read PVs are open on this channel. |
abstract int |
getUsageCounter()
Returns how many read or write PVs are open on this channel. |
abstract int |
getWriteUsageCounter()
Returns how many write PVs are open on this channel. |
abstract boolean |
isConnected()
Returns true if it is connected. |
protected abstract void |
removeMonitor(Collector<?> collector)
Used by the data source to remove a read request. |
protected abstract void |
removeWrite(WriteCache<?> cache,
ExceptionHandler exceptionHandler)
Used by the data source to conclude writes to the channel managed by this handler. |
protected abstract void |
write(java.lang.Object newValue,
ChannelWriteCallback callback)
Implements a write operation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChannelHandler(java.lang.String channelName)
channelName
- the name of the channel this handler will be responsible ofMethod Detail |
---|
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
public java.lang.String getChannelName()
public abstract int getUsageCounter()
public abstract int getReadUsageCounter()
public abstract int getWriteUsageCounter()
protected abstract void addMonitor(ChannelHandlerReadSubscription subscription)
subscription
- the data required for a subscriptionprotected abstract void removeMonitor(Collector<?> collector)
collector
- the collector that does not need to be notified anymoreprotected abstract void addWriter(WriteCache<?> cache, ExceptionHandler handler)
handler
- to be notified in case of errorsprotected abstract void removeWrite(WriteCache<?> cache, ExceptionHandler exceptionHandler)
exceptionHandler
- to be notified in case of errorsprotected abstract void write(java.lang.Object newValue, ChannelWriteCallback callback)
newValue
- new value to be writtencallback
- called when done or on errorpublic abstract boolean isConnected()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |