类 RepeatContextSupport

    • 方法详细资料

      • isTerminateOnly

        public boolean isTerminateOnly()
        从接口复制的说明: RepeatContext
        Public accessor for the termination flag. If this flag is set then the complete flag will also be.
        指定者:
        isTerminateOnly 在接口中 RepeatContext
        返回:
        indicates if the repeat should terminate
      • getParent

        public RepeatContext getParent()
        从接口复制的说明: RepeatContext
        If batches are nested, then the inner batch will be created with the outer one as a parent. This is an accessor for the parent if it exists.
        指定者:
        getParent 在接口中 RepeatContext
        返回:
        the parent context or null if there is none
      • increment

        public void increment()
        Used by clients to increment the started count.
      • registerDestructionCallback

        public void registerDestructionCallback​(java.lang.String name,
                                                java.lang.Runnable callback)
        从接口复制的说明: RepeatContext
        Register a callback to be executed on close, associated with the attribute having the given name. The Runnable callback should not throw any exceptions.
        指定者:
        registerDestructionCallback 在接口中 RepeatContext
        参数:
        name - the name of the attribute to associated this callback with. If this attribute is removed the callback should never be called.
        callback - a Runnable to execute when the context is closed.
      • close

        public void close()
        从接口复制的说明: RepeatContext
        Allow resources to be cleared, especially in destruction callbacks. Implementations should ensure that any registered destruction callbacks are executed here, as long as the corresponding attribute is still available.
        指定者:
        close 在接口中 RepeatContext