Interface ServiceDependencies


public interface ServiceDependencies
The ServiceDependencies interface defines externally provided dependencies for clustered services.
Since:
Coherence 12.1.3
Author:
pfm 2011.05.12
  • Method Details

    • getEventDispatcherThreadPriority

      int getEventDispatcherThreadPriority()
      Obtain the priority of the event dispatcher thread. The returned value must be an integer between Thread.MIN_PRIORITY and Thread.MAX_PRIORITY.
      Returns:
      the event dispatcher thread priority
    • getSerializerFactory

      SerializerFactory getSerializerFactory()
      Obtain the SerializerFactory used by this service.
      Returns:
      the SerializerFactory
    • getRequestTimeoutMillis

      long getRequestTimeoutMillis()
      Obtain a default request timeout value. This is also a default value for PriorityTasks.
      Returns:
      the default request timeout
    • getTaskHungThresholdMillis

      long getTaskHungThresholdMillis()
      Obtain the amount of time that a task can execute before it's considered "hung".
      Returns:
      the task hung threshold
    • getTaskTimeoutMillis

      long getTaskTimeoutMillis()
      Obtain the default task timeout value. This value is used as a default for PriorityTasks.
      Returns:
      the default task timeout
    • getThreadPriority

      int getThreadPriority()
      Obtain the priority of the service thread. The returned value must be an integer between Thread.MIN_PRIORITY and Thread.MAX_PRIORITY.
      Returns:
      the service thread priority
    • getWorkerThreadCount

      int getWorkerThreadCount()
      Deprecated.
      Since 12.2.1, replaced by returning the same value from getWorkerThreadCountMin() and getWorkerThreadCountMax().
      Obtain the number of background worker threads that will be created when the service is started.
      • A value of zero indicates that all requests should be processed by the service thread.
      • A positive value indicates that a fixed-size thread pool of the specified size should be used to process service requests.
      • A negative value indicates that requests should be processed either on the service thread or transport threads where possible.
      Returns:
      the worker thread count
    • getWorkerThreadCountMax

      int getWorkerThreadCountMax()
      Obtain the maximum number of background worker threads.
      • A value of zero indicates that all requests should be processed by the service thread.
      • A positive value indicates that a dynamic thread pool of the maximum specified size should be used to process service requests.
      • A negative value indicates that requests should be processed either on the service thread or transport threads where possible.
      Returns:
      the maximum worker thread count
    • getWorkerThreadCountMin

      int getWorkerThreadCountMin()
      Obtain the minimum number of background worker threads.
      • A value of zero indicates that all requests should be processed by the service thread.
      • A positive value indicates that a dynamic thread pool of the minimum specified size should be used to process service requests.
      • A negative value indicates that requests should be processed either on the service thread or transport threads where possible.
      Returns:
      the minimum worker thread count
    • getWorkerThreadPriority

      int getWorkerThreadPriority()
      Obtain the priority of the worker threads. The returned value must be an integer between Thread.MIN_PRIORITY and Thread.MAX_PRIORITY.
      Returns:
      the worker thread priority
    • getHealthCheckDependencies

      com.tangosol.internal.health.HealthCheckDependencies getHealthCheckDependencies()
      Returns the service's HealthCheckDependencies.
      Returns:
      the service's HealthCheckDependencies