Class S4JBaseOpDispenser

  • Field Details

    • parsedOp

      protected final ParsedOp parsedOp
    • s4jAdapterMetrics

      protected final S4JAdapterMetrics s4jAdapterMetrics
    • temporaryDest

      protected final boolean temporaryDest
    • destType

      protected final String destType
    • asyncAPI

      protected final boolean asyncAPI
    • txnBatchNum

      protected final int txnBatchNum
    • destNameStrFunc

      protected final LongFunction<String> destNameStrFunc
    • totalThreadNum

      protected final int totalThreadNum
    • totalCycleNum

      protected final long totalCycleNum
    • s4jSpaceF

      protected final LongFunction<S4JSpace> s4jSpaceF
  • Constructor Details

  • Method Details

    • getS4jAdapterMetrics

      public S4JAdapterMetrics getS4jAdapterMetrics()
    • lookupStaticBoolConfigValueFunc

      protected LongFunction<Boolean> lookupStaticBoolConfigValueFunc(String paramName, boolean defaultValue)
    • lookupStaticStrSetOpValueFunc

      protected LongFunction<Set<String>> lookupStaticStrSetOpValueFunc(String paramName)
    • lookupStaticIntOpValueFunc

      protected LongFunction<Integer> lookupStaticIntOpValueFunc(String paramName, int defaultValue)
    • lookupOptionalStrOpValueFunc

      protected LongFunction<String> lookupOptionalStrOpValueFunc(String paramName, String defaultValue)
    • lookupOptionalStrOpValueFunc

      protected LongFunction<String> lookupOptionalStrOpValueFunc(String paramName)
    • lookupMandtoryStrOpValueFunc

      protected LongFunction<String> lookupMandtoryStrOpValueFunc(String paramName)
    • getS4jJmsContextWrapper

      public S4JJMSContextWrapper getS4jJmsContextWrapper(long curCycle)
    • getS4jJmsContextWrapper

      public S4JJMSContextWrapper getS4jJmsContextWrapper(long curCycle, Map<String,Object> overrideS4jConfMap)
    • getJmsDestination

      public javax.jms.Destination getJmsDestination(long curCycle, S4JJMSContextWrapper s4JJMSContextWrapper, boolean tempDest, String destType, String destName) throws javax.jms.JMSRuntimeException
      If the JMS destination that corresponds to a topic exists, reuse it; Otherwise, create it
      Throws:
      javax.jms.JMSRuntimeException
    • getJmsProducer

      public javax.jms.JMSProducer getJmsProducer(long curCycle, S4JJMSContextWrapper s4JJMSContextWrapper, boolean asyncApi) throws javax.jms.JMSException
      If the JMS producer that corresponds to a destination exists, reuse it; Otherwise, create it
      Throws:
      javax.jms.JMSException
    • getJmsConsumer

      public javax.jms.JMSConsumer getJmsConsumer(long curCycle, S4JJMSContextWrapper s4JJMSContextWrapper, javax.jms.Destination destination, String destType, String subName, String msgSelector, float msgAckRatio, boolean nonLocal, boolean durable, boolean shared, boolean asyncApi, int slowAckInSec) throws javax.jms.JMSException
      If the JMS consumer that corresponds to a destination(, subscription, message selector) exists, reuse it; Otherwise, create it
      Throws:
      javax.jms.JMSException
    • commitTransaction

      protected boolean commitTransaction(int txnBatchNum, int jmsSessionMode, long curCycleNum)