Class KeepAlive


  • public class KeepAlive
    extends APIRequestHandler
    /keepalive or /api/keepalive : Keeps the current session/task alive.

    This enpoint is intended to that the user's session, and a given task, is not disposed of even if they don't browse to a new page for a long time.

    The only method supported is:

    GET
    • Optional parameter
      • threadId A thread to keep from being cleaned up.
    • Response Body - no body is returned.
    • Response Status - always 200 .

    Author:
    Robert Fromont
    • Constructor Detail

      • KeepAlive

        public KeepAlive()
        Constructor
    • Method Detail

      • get

        public void get​(RequestParameters parameters,
                        Consumer<Integer> refreshHeader)
        Keeps session/task alive.
        Parameters:
        parameters - Request parameter map.
        refreshHeader - Receives the value for the Refresh header.