Class CATypeAdapter
- java.lang.Object
-
- org.epics.gpclient.datasource.ca.types.CATypeAdapter
-
- All Implemented Interfaces:
org.epics.gpclient.datasource.DataSourceTypeAdapter<CAConnectionPayload,CAMessagePayload>
public abstract class CATypeAdapter extends Object implements org.epics.gpclient.datasource.DataSourceTypeAdapter<CAConnectionPayload,CAMessagePayload>
-
-
Constructor Summary
Constructors Constructor Description CATypeAdapter(Class<?> typeClass, gov.aps.jca.dbr.DBRType epicsValueType, gov.aps.jca.dbr.DBRType epicsMetaType, Boolean array)Creates a new type adapter.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ObjectcreateValue(gov.aps.jca.dbr.DBR message, gov.aps.jca.dbr.DBR metadata, CAConnectionPayload connPayload)Given the value create the new value.ObjectgetSubscriptionParameter(org.epics.gpclient.ReadCollector<?,?> cache, CAConnectionPayload connection)booleanmatch(org.epics.gpclient.ReadCollector<?,?> cache, CAConnectionPayload connectionPayload)voidupdateCache(org.epics.gpclient.ReadCollector cache, CAConnectionPayload connection, CAMessagePayload message)
-
-
-
Constructor Detail
-
CATypeAdapter
public CATypeAdapter(Class<?> typeClass, gov.aps.jca.dbr.DBRType epicsValueType, gov.aps.jca.dbr.DBRType epicsMetaType, Boolean array)
Creates a new type adapter.- Parameters:
typeClass- the java type this adapter will createepicsValueType- the epics type used for the monitorepicsMetaType- the epics type for the get at connection time; null if no metadata is neededarray- true whether this will require an array type
-
-
Method Detail
-
match
public boolean match(org.epics.gpclient.ReadCollector<?,?> cache, CAConnectionPayload connectionPayload)- Specified by:
matchin interfaceorg.epics.gpclient.datasource.DataSourceTypeAdapter<CAConnectionPayload,CAMessagePayload>
-
getSubscriptionParameter
public Object getSubscriptionParameter(org.epics.gpclient.ReadCollector<?,?> cache, CAConnectionPayload connection)
- Specified by:
getSubscriptionParameterin interfaceorg.epics.gpclient.datasource.DataSourceTypeAdapter<CAConnectionPayload,CAMessagePayload>
-
updateCache
public void updateCache(org.epics.gpclient.ReadCollector cache, CAConnectionPayload connection, CAMessagePayload message)- Specified by:
updateCachein interfaceorg.epics.gpclient.datasource.DataSourceTypeAdapter<CAConnectionPayload,CAMessagePayload>
-
createValue
public abstract Object createValue(gov.aps.jca.dbr.DBR message, gov.aps.jca.dbr.DBR metadata, CAConnectionPayload connPayload)
Given the value create the new value.- Parameters:
message- the value taken from the monitormetadata- the value field metadata, optionalconnPayload- connection playload- Returns:
- the new value
-
-