Class TxnIdFactory


  • public class TxnIdFactory
    extends java.lang.Object
    Factory for some forms of TxnId. This is ony some possible TxnIdGenerator
    See Also:
    TxnId
    • Constructor Summary

      Constructors 
      Constructor Description
      TxnIdFactory()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static TxnId create()
      Return the default, good enough for one JVM (usually the simple counter based implementation)
      static TxnId create​(byte[] bytes)  
      static TxnId createSimple()
      Return a TxnId from the counter based implementation.
      static TxnId createUuid()
      Return a TxnId from the UUID based implementation.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • txnIdGenSimple

        public static final TxnIdGenerator txnIdGenSimple
        Generator for TxnIds for the counter based implementation.
      • txnIdGenUuid

        public static final TxnIdGenerator txnIdGenUuid
        Generator for TxnIds for the UUID based implementation.
    • Constructor Detail

      • TxnIdFactory

        public TxnIdFactory()
    • Method Detail

      • create

        public static TxnId create()
        Return the default, good enough for one JVM (usually the simple counter based implementation)
      • createSimple

        public static TxnId createSimple()
        Return a TxnId from the counter based implementation.
      • createUuid

        public static TxnId createUuid()
        Return a TxnId from the UUID based implementation.
      • create

        public static TxnId create​(byte[] bytes)