Class 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
    • 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