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.
      • run

        public void run()