@Immutable @Loggable(value=1) public final class RtSttc extends Object implements Sttc
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.
| Constructor and Description |
|---|
RtSttc(com.jcabi.urn.URN urn,
String token)
Ctor.
|
public RtSttc(com.jcabi.urn.URN urn,
String token)
urn - Owner URNtoken - Security tokenpublic static Sttc make(com.jcabi.urn.URN urn, String token)
urn - Owner URNtoken - Security tokenpublic Counters counters() throws IOException
Sttccounters in interface SttcIOException - If some I/O problempublic Locks locks() throws IOException
Sttclocks in interface SttcIOException - If some I/O problemCopyright © 2014–2015 stateful.co. All rights reserved.