FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
java-sdk/src/main/java/co/stateful/package-info.java at master · sttc/java-sdk · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
sttc
/
java-sdk
Public
Notifications
You must be signed in to change notification settings
Fork
3
Star
9
Code
Issues
3
Pull requests
4
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
java-sdk
/
src
/
main
/
java
/
co
/
stateful
/
package-info.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
37 lines (36 loc) · 1.3 KB
Breadcrumbs
java-sdk
/
src
/
main
/
java
/
co
/
stateful
/
package-info.java
Copy path
File metadata and controls
37 lines (36 loc) · 1.3 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
* SPDX-FileCopyrightText: Copyright (c) 2014-2026, stateful.co
* SPDX-License-Identifier: MIT
*/
/**
* Stateful.co SDK.
*
* <p>First, read the documentation at
* <a href="https://java-sdk.stateful.co">java-sdk.stateful.co</a>. Then,
* register an account at <a href="https://www.stateful.co">stateful.co</a>.
* Then, you can try to use, for example, counters:
*
* <pre> public class Main {
* public static void main(String... args) {
* Sttc sttc = new RtSttc(
* new URN("urn:github:526301"),
* "9FF3-41E0-73FB-F900"
* );
* String name = "test-123";
* Counters counters = sttc.counters();
* Counter counter = counters.create(name);
* long value = counter.incrementAndGet(1L);
* System.out.println("new value: " + value);
* counters.delete(name);
* }
* }</pre>
*
* <p>You need two arguments to instantiate {@link RtSttc}: URN of the user
* and your secret token. You can get them at the home page of
* <a href="https://www.stateful.co">stateful.co</a>, right on the top.
*
* @since 0.1
* @see <a href="http://www.yegor256.com/2014/05/18/cloud-autoincrement-counters.html">Atomic Counters at Stateful.co</a>
* @see <a href="http://www.yegor256.com/2014/12/04/synchronization-between-nodes.html">Synchronization Between Nodes</a>
*/
package
co
.
stateful
;
Back
|
FazBrowse Home
|
New Git URL