Package org.epics.gpclient
Class GPClientConfiguration
- java.lang.Object
-
- org.epics.gpclient.GPClientConfiguration
-
public class GPClientConfiguration extends Object
The configuration for an instance of the generic purpose client.- Author:
- carcassi
-
-
Constructor Summary
Constructors Constructor Description GPClientConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GPClientInstance
build()
GPClientConfiguration
dataProcessingThreadPool(ScheduledExecutorService dataProcessingThreadPool)
Sets the thread pool for data processing.GPClientConfiguration
dataSource(DataSource defaultDataSource)
Sets the default source for data.GPClientConfiguration
defaultMaxRate(Duration defaultMaxRate)
Sets the default maximum rate of notification for pvs.GPClientConfiguration
notificationExecutor(Executor defaultNotificationExecutor)
Sets the default executor on which all notifications are going to be posted.
-
-
-
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
-
build
public GPClientInstance build()
-
-