クラス RdbTableCounterService

java.lang.Object
org.iplass.mtp.impl.counter.RdbTableCounterService
すべての実装されたインタフェース:
CounterService, Service

public class RdbTableCounterService extends Object implements CounterService
  • コンストラクタの詳細

    • RdbTableCounterService

      public RdbTableCounterService()
  • メソッドの詳細

    • getCounterTypeName

      public String getCounterTypeName()
    • setCounterTypeName

      public void setCounterTypeName(String counterTypeName)
    • getRdbAdapter

      protected RdbAdapter getRdbAdapter()
    • getCounterSql

      protected RdbTableCounterSql getCounterSql()
    • getRetryCount

      public int getRetryCount()
    • isSeparateTransaction

      public boolean isSeparateTransaction()
    • init

      public void init(Config config)
      定義:
      init インタフェース内 Service
    • destroy

      public void destroy()
      定義:
      destroy インタフェース内 Service
    • increment

      public long increment(int tenantId, String incrementUnitKey, long initialCount)
      インタフェースからコピーされた説明: CounterService
      tenantId、incrementUnitKey単位でユニークな値を取得します。 ただし、tenantId、incrementUnitKeyで連続して採番されるとは限りません。
      定義:
      increment インタフェース内 CounterService
      パラメータ:
      tenantId - テナントID
      incrementUnitKey - KEY
      initialCount - まだカウンターが初期化されていない場合の初期値
      戻り値:
      採番値
    • resetCounter

      public void resetCounter(int tenantId, String incrementUnitKey)
      インタフェースからコピーされた説明: CounterService
      現在の採番値をリセットします。
      定義:
      resetCounter インタフェース内 CounterService
      パラメータ:
      tenantId - テナントID
      incrementUnitKey - KEY
    • resetCounter

      public void resetCounter(int tenantId, String incrementUnitKey, long currentCount)
      インタフェースからコピーされた説明: CounterService
      現在の採番値をcurrentCountでリセットします。
      定義:
      resetCounter インタフェース内 CounterService
      パラメータ:
      tenantId - テナントID
      incrementUnitKey - KEY
      currentCount - リセット値
    • deleteCounter

      public void deleteCounter(int tenantId, String incrementUnitKey)
      インタフェースからコピーされた説明: CounterService
      採番データを削除します。
      定義:
      deleteCounter インタフェース内 CounterService
      パラメータ:
      tenantId - テナントID
      incrementUnitKey - KEY
    • current

      public long current(int tenantId, String incrementUnitKey)
      インタフェースからコピーされた説明: CounterService
      現在のカレント値を返します。 もしまだ初期化されていない場合は-1が返却される。
      定義:
      current インタフェース内 CounterService
      パラメータ:
      tenantId - テナントID
      incrementUnitKey - KEY
      戻り値:
      カレント値
    • keySet

      public Set<String> keySet(int tenantId, String prefixIncrementUnitKey)
      インタフェースからコピーされた説明: CounterService
      採番キーのリストを返します。 prefixIncrementUnitKeyが指定された場合は、前方一致で該当するKEYを返します。
      定義:
      keySet インタフェース内 CounterService
      パラメータ:
      tenantId - テナントID
      prefixIncrementUnitKey - KEYのPrefix
      戻り値:
      採番キーのリスト