Class DelayedDispatchingStrategy<T extends org.cardanofoundation.lob.app.support.spring_audit.CommonDateOnlyEntity>

java.lang.Object
org.cardanofoundation.lob.app.blockchain_publisher.service.dispatch.DelayedDispatchingStrategy<T>
All Implemented Interfaces:
BiFunction<String,Set<T>,Set<T>>, DispatchingStrategy<T>

@Service @ConditionalOnProperty(prefix="lob.dispatching_strategy", name="type", havingValue="DELAYED", matchIfMissing=true) public class DelayedDispatchingStrategy<T extends org.cardanofoundation.lob.app.support.spring_audit.CommonDateOnlyEntity> extends Object implements DispatchingStrategy<T>
  • Constructor Details

    • DelayedDispatchingStrategy

      public DelayedDispatchingStrategy()
  • Method Details

    • init

      @PostConstruct public void init()
    • apply

      public Set<T> apply(String organisationId, Set<T> txs)
      Specified by:
      apply in interface BiFunction<String,Set<T extends org.cardanofoundation.lob.app.support.spring_audit.CommonDateOnlyEntity>,Set<T extends org.cardanofoundation.lob.app.support.spring_audit.CommonDateOnlyEntity>>
      Specified by:
      apply in interface DispatchingStrategy<T extends org.cardanofoundation.lob.app.support.spring_audit.CommonDateOnlyEntity>