Interface FetchAndLockHandler

All Known Implementing Classes:
FetchAndLockHandlerImpl

public interface FetchAndLockHandler
SPI supposed to replace the default implementation of the long-polling fetch and lock handler
Author:
Tassilo Weidner
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addPendingRequest(FetchExternalTasksExtendedDto dto, jakarta.ws.rs.container.AsyncResponse asyncResponse, ProcessEngine processEngine)
    Invoked if a fetch and lock request has been sent by the client
    void
    contextInitialized(jakarta.servlet.ServletContextEvent servletContextEvent)
    Invoked on initialization of the servlet context
    void
    Receives a notification that the engine rest web application is about to be shut down
    void
    Receives a notification that the engine rest web application initialization has been started
  • Method Details

    • start

      void start()
      Receives a notification that the engine rest web application initialization has been started
    • shutdown

      void shutdown()
      Receives a notification that the engine rest web application is about to be shut down
    • addPendingRequest

      void addPendingRequest(FetchExternalTasksExtendedDto dto, jakarta.ws.rs.container.AsyncResponse asyncResponse, ProcessEngine processEngine)
      Invoked if a fetch and lock request has been sent by the client
      Parameters:
      dto - which is supposed to hold the payload
      asyncResponse - provides means for asynchronous server side response processing
      processEngine - provides the process engine context of the respective request
    • contextInitialized

      void contextInitialized(jakarta.servlet.ServletContextEvent servletContextEvent)
      Invoked on initialization of the servlet context
      Parameters:
      servletContextEvent - provides the servlet context