Interface Controller

All Superinterfaces:
Service, ServiceListener
All Known Subinterfaces:
InternalProcessorService
All Known Implementing Classes:
AbstractController, InternalProcessorServiceImpl

public interface Controller extends Service, ServiceListener
All supported APIs for a controller.
  • Method Details

    • enqueueRequest

      void enqueueRequest(Request request) throws RequestQueueFullException
      Enqueue a request from a request queue for processing.
      Parameters:
      request - the processing Request
      Throws:
      RequestQueueFullException - when the request queue is full
    • getMaxRequestQueueSize

      int getMaxRequestQueueSize()
      Retrieves the maximum size of a request queue.
      Returns:
      the maximum request queue size (integer value)
    • setMaxRequestQueueSize

      void setMaxRequestQueueSize(int maxSize)
      Sets the maximum value size for the request queue.
      Parameters:
      maxSize - the maximum size of a request queue (integer value)
    • getPercentageUsedRequestQueue

      float getPercentageUsedRequestQueue()
      Retrieves the current percentage using of a request queue.
      Returns:
      the percentage of using (float value)
    • getThreadPoolSize

      int getThreadPoolSize()
      Retrieves the thread pool size using for processes.
      Returns:
      the thread pool size (integer value)
    • setThreadPoolSize

      void setThreadPoolSize(int maxSize)
      Set the thread pool size using for processes.
      Parameters:
      maxSize - the thread pool size (integer value)