Class GPClientConfiguration


  • public class GPClientConfiguration
    extends Object
    The configuration for an instance of the generic purpose client.
    Author:
    carcassi
    • Constructor Detail

      • GPClientConfiguration

        public GPClientConfiguration()
    • Method Detail

      • notificationExecutor

        public GPClientConfiguration notificationExecutor​(Executor defaultNotificationExecutor)
        Sets the default executor on which all notifications are going to be posted.
        Parameters:
        defaultNotificationExecutor - the default notification executor
        Returns:
        this configuration
      • dataSource

        public GPClientConfiguration dataSource​(DataSource defaultDataSource)
        Sets the default source for data.
        Parameters:
        defaultDataSource - the default data source
        Returns:
        this configuration
      • dataProcessingThreadPool

        public GPClientConfiguration dataProcessingThreadPool​(ScheduledExecutorService dataProcessingThreadPool)
        Sets the thread pool for data processing. This includes: data rate decoupling, data aggregation, data computation and (possibly) data notification (if notification is set on the local thread).
        Parameters:
        dataProcessingThreadPool - the thread pool used for data processing
        Returns:
        this configuration
      • defaultMaxRate

        public GPClientConfiguration defaultMaxRate​(Duration defaultMaxRate)
        Sets the default maximum rate of notification for pvs. A maxRate of 100 ms means notification are not going to come faster than every 100 ms. This value can be set pv by pv.
        Parameters:
        defaultMaxRate - the default maximum rate of notification for pvs
        Returns:
        this configuration