Interface Controller

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

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

    • enqueueRequest

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

      int getMaxRequestQueueSize()
      Retrieves the max request size.
      Returns:
      the max request size
    • setMaxRequestQueueSize

      void setMaxRequestQueueSize(int maxSize)
      Set the maximum value size for the queue.
      Parameters:
      maxSize - the max size
    • getPercentageUsedRequestQueue

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

      int getThreadPoolSize()
      Retrieves the thread pool size.
      Returns:
      the thread pool size
    • setThreadPoolSize

      void setThreadPoolSize(int maxSize)
      Set the thread pool size.
      Parameters:
      maxSize - the max size