类 SimpleProcedureScheduler

    • 构造器详细资料

      • SimpleProcedureScheduler

        public SimpleProcedureScheduler()
    • 方法详细资料

      • enqueue

        protected void enqueue​(Procedure procedure,
                               boolean addFront)
        从类复制的说明: AbstractProcedureScheduler
        Add the procedure to the queue. NOTE: this method is called with the sched lock held.
        指定者:
        enqueue 在类中 AbstractProcedureScheduler
        参数:
        procedure - the Procedure to add
        addFront - true if the item should be added to the front of the queue
      • clear

        public void clear()
        从接口复制的说明: ProcedureScheduler
        Clear current state of scheduler such that it is equivalent to newly created scheduler. Used for testing failure and recovery.
      • yield

        public void yield​(Procedure proc)
        从接口复制的说明: ProcedureScheduler
        The procedure can't run at the moment. add it back to the queue, giving priority to someone else.
        参数:
        proc - the Procedure to add back to the list
      • queueHasRunnables

        public boolean queueHasRunnables()
        从类复制的说明: AbstractProcedureScheduler
        Returns true if there are procedures available to process. NOTE: this method is called with the sched lock held.
        指定者:
        queueHasRunnables 在类中 AbstractProcedureScheduler
        返回:
        true if there are procedures available to process, otherwise false.
      • addWaiting

        public void addWaiting​(Procedure proc)
      • releaseWaiting

        public void releaseWaiting()