public abstract class JCATypeAdapter extends Object implements DataSourceTypeAdapter<JCAConnectionPayload,JCAMessagePayload>
| Constructor and Description |
|---|
JCATypeAdapter(Class<?> typeClass,
gov.aps.jca.dbr.DBRType epicsValueType,
gov.aps.jca.dbr.DBRType epicsMetaType,
Boolean array)
Creates a new type adapter.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Object |
createValue(gov.aps.jca.dbr.DBR value,
gov.aps.jca.dbr.DBR metadata,
JCAConnectionPayload connPayload)
Given the value and the (optional) metadata, will create the new value.
|
Object |
getSubscriptionParameter(ValueCache cache,
JCAConnectionPayload connPayload) |
int |
match(ValueCache<?> cache,
JCAConnectionPayload connPayload) |
boolean |
updateCache(ValueCache cache,
JCAConnectionPayload connPayload,
JCAMessagePayload message) |
public JCATypeAdapter(Class<?> typeClass, gov.aps.jca.dbr.DBRType epicsValueType, gov.aps.jca.dbr.DBRType epicsMetaType, Boolean array)
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 typepublic int match(ValueCache<?> cache, JCAConnectionPayload connPayload)
match in interface DataSourceTypeAdapter<JCAConnectionPayload,JCAMessagePayload>public Object getSubscriptionParameter(ValueCache cache, JCAConnectionPayload connPayload)
getSubscriptionParameter in interface DataSourceTypeAdapter<JCAConnectionPayload,JCAMessagePayload>public boolean updateCache(ValueCache cache, JCAConnectionPayload connPayload, JCAMessagePayload message)
updateCache in interface DataSourceTypeAdapter<JCAConnectionPayload,JCAMessagePayload>public abstract Object createValue(gov.aps.jca.dbr.DBR value, gov.aps.jca.dbr.DBR metadata, JCAConnectionPayload connPayload)
value - the value taken from the monitormetadata - the value taken as metadataconnPayload - the connection payloadCopyright © 2010–2014. All rights reserved.