FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
java-sdk/src/main/java/co/stateful/Lock.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
/
Lock.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
49 lines (43 loc) · 1.11 KB
Breadcrumbs
java-sdk
/
src
/
main
/
java
/
co
/
stateful
/
Lock.java
Copy path
File metadata and controls
49 lines (43 loc) · 1.11 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
38
39
40
41
42
43
44
45
46
47
48
49
/*
* SPDX-FileCopyrightText: Copyright (c) 2014-2026, stateful.co
* SPDX-License-Identifier: MIT
*/
package
co
.
stateful
;
import
com
.
jcabi
.
aspects
.
Immutable
;
import
java
.
io
.
IOException
;
/**
* Lock.
* @since 0.3
*/
@
Immutable
public
interface
Lock
{
/**
* Its name.
* @return Name of this lock
* @since 0.8
*/
String
name
();
/**
* Read label (or empty text if lock doesn't exist).
* @return Label of this lock (if the lock exists), or empty string
* @throws IOException If any problem inside
* @since 0.15
*/
String
label
()
throws
IOException
;
/**
* Lock with label.
* @param label Label to attach
* @return TRUE if success, FALSE otherwise
* @throws IOException If any problem inside
* @since 0.11
*/
boolean
lock
(
String
label
)
throws
IOException
;
/**
* Unlock, if label matches.
* @param label Label to attach
* @return TRUE if success, FALSE otherwise (label doesn't match)
* @throws IOException If any problem inside
* @since 0.11
*/
boolean
unlock
(
String
label
)
throws
IOException
;
}
Back
|
FazBrowse Home
|
New Git URL