Class GPClientInstance


  • public class GPClientInstance
    extends Object
    An instance of the general purpose client. Typically one would use the default instance provided by GPClient.
    Author:
    carcassi
    • Method Detail

      • readOnce

        public Future<org.epics.vtype.VType> readOnce​(String channelName)
        Reads the value of the given expression, asking for VType values.
        Parameters:
        channelName - the name of the channel
        Returns:
        the future value
      • readOnce

        public <R> Future<R> readOnce​(Expression<R,​?> expression)
        Reads the value of the given expression.
        Type Parameters:
        R - the read type
        Parameters:
        expression - the expression to read
        Returns:
        the future value
      • read

        public PVReaderConfiguration<org.epics.vtype.VType> read​(String channelName)
        Reads the channel with the given name, asking for VType values.
        Parameters:
        channelName - the name of the channel
        Returns:
        the configuration options
      • read

        public <R> PVReaderConfiguration<R> read​(Expression<R,​?> expression)
        Create a reader for the given expression.
        Type Parameters:
        R - the read type
        Parameters:
        expression - the expression to read
        Returns:
        the configuration options
      • write

        public <W> PVWriterConfiguration<W> write​(Expression<?,​W> expression)
        Creates a writer for the given expression.
        Type Parameters:
        W - the write type
        Parameters:
        expression - the expression to be written to
        Returns:
        the configurations options
      • readAndWrite

        public PVConfiguration<org.epics.vtype.VType,​Object> readAndWrite​(String channelName)
        Reads and writes the channel with the given name, asking for VType values.
        Parameters:
        channelName - the name of the channel
        Returns:
        the configuration options
      • readAndWrite

        public <R,​W> PVConfiguration<R,​W> readAndWrite​(Expression<R,​W> expression)
        Reads and writes the given expression.
        Type Parameters:
        R - the read type
        W - the write type
        Parameters:
        expression - the expression to read and write
        Returns:
        the configuration options
      • getDefaultDataSource

        public DataSource getDefaultDataSource()
        The default DataSource used by this client instance.
        Returns:
        the default data source; never null
      • close

        public void close()
        Closes the gpclient instance.