Package co.stateful
Interface Sttc
-
@Immutable public interface SttcStateful Entry Point.Make an instance of this interface using
RtSttc, 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
RtSttc: URN of the user and your secret token. You can get them at the home page of stateful.co, right on the top.- Since:
- 0.1
- See Also:
- Atomic Counters at Stateful.co, Synchronization Between Nodes
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Counterscounters()Counters.Lockslocks()Locks.
-
-
-
Method Detail
-
counters
Counters counters() throws IOException
Counters.- Returns:
- Counters
- Throws:
IOException- If some I/O problem
-
locks
Locks locks() throws IOException
Locks.- Returns:
- Locks
- Throws:
IOException- If some I/O problem
-
-