Move Enums to API
This commit is contained in:
1 parent
2ef0fbf727
commit
19c68e4ead
2 files changed
No files matched your search
@@ -0,0 +1,13 @@
|
||||
package com.alttd;
|
||||
|
||||
enum RequestType {
|
||||
TRY_LOCK("try-lock"),
|
||||
TRY_UNLOCK("try-unlock"),
|
||||
CHECK_LOCK("check-lock");
|
||||
|
||||
String subChannel;
|
||||
|
||||
RequestType(String subChannel) {
|
||||
this.subChannel = subChannel;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.alttd;
|
||||
|
||||
public enum ResponseType {
|
||||
TRY_LOCK_RESULT,
|
||||
QUEUE_LOCK_FAILED,
|
||||
TRY_UNLOCK_RESULT,
|
||||
LOCKED_QUEUE_LOCK,
|
||||
CHECK_LOCK_RESULT
|
||||
}
|
||||
Reference in new issue
Block a user