Interface CustomRequestHandler

All Superinterfaces:
RequestHandler
All Known Implementing Classes:
AbstractCustomRequestHandler

public interface CustomRequestHandler
extends RequestHandler
An extension to the regular request-handler interface that allows life-cycle control by the job agent. Custom request handlers are typically defined in the job.properties configuration file. They will automatically be create when the agent is started and closed when the agent is stopped.

Implementations must be thread-safe and be able to handle multiple requests at the same time.

Since:
2.16
Author:
Nicklas
Last modified
$Date: 2010-10-15 13:59:00 +0200 (fr, 15 okt 2010) $
  • Method Summary

    Modifier and Type Method Description
    void close()
    This method is called at when the agent is stopped.
    void init​(Agent agent)
    Initialize the request handler.

    Methods inherited from interface net.sf.basedb.util.jobagent.RequestHandler

    handleCmd
  • Method Details

    • init

      void init​(Agent agent)
      Initialize the request handler. This method is called once immediately after the object has been created.
      Parameters:
      agent - The agent
      Since:
      2.16
    • close

      void close()
      This method is called at when the agent is stopped.
      Since:
      2.16