Class SingleTaskSession

    • Field Detail

      • onlySessionTask

        protected final SessionTask onlySessionTask
    • Constructor Detail

      • SingleTaskSession

        public SingleTaskSession​(SessionTask onlySessionTask,
                                 String sessionId,
                                 ConcurrentMap<String,​Session> sessions)
        Constructs a SingleTaskSession that has the task to execute supplied on construction.
    • Method Detail

      • isAcceptingTasks

        public boolean isAcceptingTasks()
        The SingleWorker can only process one request so the initial construction of it already has the request in it and no more can be added, therefore this method always return false.
      • sendTimeoutResponseForUncommencedTask

        public void sendTimeoutResponseForUncommencedTask()
        Description copied from class: AbstractSession
        Respond to the client with the specific timeout response for this Session implementation. This is for situations where the Session hasn't started running.
        Specified by:
        sendTimeoutResponseForUncommencedTask in class AbstractSession
      • run

        public void run()