Class AbstracJobBlockStrategy

java.lang.Object
com.aizuda.snailjob.server.job.task.support.block.job.AbstracJobBlockStrategy
All Implemented Interfaces:
BlockStrategy, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
ConcurrencyBlockStrategy, DiscardBlockStrategy, OverlayBlockStrategy, RecoveryBlockStrategy

public abstract class AbstracJobBlockStrategy extends Object implements BlockStrategy, org.springframework.beans.factory.InitializingBean
Since:
: 2.6.0
  • Constructor Details

    • AbstracJobBlockStrategy

      public AbstracJobBlockStrategy()
  • Method Details

    • block

      public void block(BlockStrategyContext context)
      Description copied from interface: BlockStrategy
      阻塞策略
      Specified by:
      block in interface BlockStrategy
      Parameters:
      context - 策略上下文
    • doBlock

      protected abstract void doBlock(BlockStrategyContext context)
    • blockStrategyEnum

      protected abstract com.aizuda.snailjob.common.core.enums.JobBlockStrategyEnum blockStrategyEnum()
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception