Package cern.dip.implementation
Class DipSubscriptionImp
- java.lang.Object
-
- cern.dip.implementation.FactoryProduct
-
- cern.dip.implementation.DipSubscriptionImp
-
- All Implemented Interfaces:
DipSubscription
public class DipSubscriptionImp extends FactoryProduct implements DipSubscription
- Author:
- beharrel
-
-
Field Summary
-
Fields inherited from class cern.dip.implementation.FactoryProduct
destroyed
-
-
Constructor Summary
Constructors Constructor Description DipSubscriptionImp(DipFactory fact, java.lang.String topicName, DipSubscriptionListener list)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
connected()
Delegates to the Listener.void
disconnected(java.lang.String reason)
Delegates to the Listener.void
finalize()
java.lang.String
getTopicName()
Returns Name of the DipData item this object is subscribed to.void
handleException(java.lang.Exception ex)
Delegates to the Listener.void
handleMessage(java.lang.String format, java.nio.ByteBuffer buffer, int quality, java.lang.String qualityreason, long timeStamp_ns)
Delegates to the Listener.void
requestUpdate()
Requests last value to be re-send.protected void
setDestroyed()
Mark object as destoyed - will cause the C++ representation to be removed-
Methods inherited from class cern.dip.implementation.FactoryProduct
isDestroyed, validate
-
-
-
-
Constructor Detail
-
DipSubscriptionImp
public DipSubscriptionImp(DipFactory fact, java.lang.String topicName, DipSubscriptionListener list) throws DipException
- Throws:
DipException
-
-
Method Detail
-
finalize
public void finalize()
- Overrides:
finalize
in classjava.lang.Object
-
getTopicName
public java.lang.String getTopicName()
Description copied from interface:DipSubscription
Returns Name of the DipData item this object is subscribed to.- Specified by:
getTopicName
in interfaceDipSubscription
-
requestUpdate
public void requestUpdate()
Description copied from interface:DipSubscription
Requests last value to be re-send. This value will be received via the normal subscription listener mechanism.- Specified by:
requestUpdate
in interfaceDipSubscription
-
connected
public void connected()
Delegates to the Listener. This is an entry point for the C++ implementation.
-
disconnected
public void disconnected(java.lang.String reason)
Delegates to the Listener. This is an entry point for the C++ implementation.
-
handleException
public void handleException(java.lang.Exception ex)
Delegates to the Listener. This is an entry point for the C++ implementation.
-
handleMessage
public void handleMessage(java.lang.String format, java.nio.ByteBuffer buffer, int quality, java.lang.String qualityreason, long timeStamp_ns)
Delegates to the Listener. This is an entry point for the C++ implementation.
-
setDestroyed
protected void setDestroyed()
Mark object as destoyed - will cause the C++ representation to be removed- Specified by:
setDestroyed
in classFactoryProduct
-
-