Package co.stateful

Class RtSttc

  • All Implemented Interfaces:
    Sttc

    @Immutable
    @Loggable(1)
    public final class RtSttc
    extends Object
    implements Sttc
    Stateful Entry Point.

    Make an instance of this class and start from there, for example, if you want to use a cloud lock from stateful.co:

     Lock lock = new RtSttc(
       new URN("urn:github:12345"), "token"
     ).locks().lock("test");

    You need two arguments to instantiate this class: URN of the user and your secret token. You can get them at the home page of stateful.co, right on the top.

    It is highly recommended to use ReSttc decorator, in production environment.

    It is also highly recommended to use CdSttc decorator, in production environment.

    Since:
    0.1
    See Also:
    Atomic Counters at Stateful.co, Synchronization Between Nodes
    • Constructor Detail

      • RtSttc

        public RtSttc​(com.jcabi.urn.URN urn,
                      String token)
        Ctor.
        Parameters:
        urn - Owner URN
        token - Security token
    • Method Detail

      • make

        public static Sttc make​(com.jcabi.urn.URN urn,
                                String token)
        Make an instance of it.
        Parameters:
        urn - Owner URN
        token - Security token
        Returns:
        Sttc