Package org.epics.gpclient.datasource.ca
Class CAConnectionPayload
- java.lang.Object
-
- org.epics.gpclient.datasource.ca.CAConnectionPayload
-
public class CAConnectionPayload extends Object
Represents the connection payload, which consists of the actual JCA Channel and the CADataSource (which can be used to extract configuration parameters).- Author:
- carcassi
-
-
Constructor Summary
Constructors Constructor Description CAConnectionPayload(CAChannelHandler channleHandler, gov.aps.jca.Channel channel, CAConnectionPayload previousPayload)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CADataSourcegetCADataSource()The CADataSource that is using the channel.gov.aps.jca.ChannelgetChannel()The JCA channel.InstantgetEventTime()Returns the local time of the connection event.gov.aps.jca.dbr.DBRTypegetFieldType()booleanisChannelConnected()True if the channel is not null and the connection state is connected.booleanisLongString()Whether the message payload should be handled as a long string.booleanisWriteConnected()True if the channel is not null, connected, and can be written to.StringtoString()
-
-
-
Constructor Detail
-
CAConnectionPayload
public CAConnectionPayload(CAChannelHandler channleHandler, gov.aps.jca.Channel channel, CAConnectionPayload previousPayload)
-
-
Method Detail
-
getCADataSource
public CADataSource getCADataSource()
The CADataSource that is using the channel.- Returns:
- the CA data source
-
getChannel
public gov.aps.jca.Channel getChannel()
The JCA channel.- Returns:
- JCA channel
-
getFieldType
public gov.aps.jca.dbr.DBRType getFieldType()
-
isChannelConnected
public boolean isChannelConnected()
True if the channel is not null and the connection state is connected.- Returns:
- ture if channel exists and is connected
-
isWriteConnected
public boolean isWriteConnected()
True if the channel is not null, connected, and can be written to.- Returns:
- true if the channel is ready for write
-
isLongString
public boolean isLongString()
Whether the message payload should be handled as a long string.- Returns:
- true if long string support should be used
-
getEventTime
public Instant getEventTime()
Returns the local time of the connection event.- Returns:
- client connection/disconnection time
-
-