-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
set a timeout deadline of 86400 seconds at the start of sessions
- Loading branch information
1 parent
9701edd
commit 860607f
Showing
4 changed files
with
136 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
syntax = "proto3"; | ||
|
||
package tateyama.proto.core.request; | ||
|
||
option java_multiple_files = false; | ||
option java_package = "com.tsurugidb.core.proto"; | ||
option java_outer_classname = "CoreRequest"; | ||
|
||
// the request message to tateyama core service. | ||
message Request { | ||
// service message version (major) | ||
uint64 service_message_version_major = 1; | ||
|
||
// service message version (minor) | ||
uint64 service_message_version_minor = 2; | ||
|
||
// reserved for system use | ||
reserved 3 to 10; | ||
|
||
// the request command. | ||
oneof command { | ||
// update session expiration time operation. | ||
UpdateExpirationTime update_expiration_time = 11; | ||
|
||
// shutdown operation. | ||
Shutdown shutdown = 12; | ||
} | ||
reserved 13 to 99; | ||
} | ||
|
||
// update session expiration time | ||
message UpdateExpirationTime { | ||
|
||
// the expiration time (milliseconds from now) to be set | ||
uint64 expiration_time = 1; | ||
} | ||
|
||
// kind of shutdown type. | ||
enum ShutdownType { | ||
|
||
// The default shutdown type. | ||
SHUTDOWN_TYPE_NOT_SET = 0; | ||
|
||
// Waits for the ongoing requests and safely shutdown the session. | ||
GRACEFUL = 1; | ||
|
||
// Cancelling the ongoing requests and safely shutdown the session. | ||
FORCEFUL = 2; | ||
} | ||
|
||
// request shutdown to the session. | ||
message Shutdown { | ||
|
||
// the shutdown type. | ||
ShutdownType type = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
syntax = "proto3"; | ||
|
||
package tateyama.proto.core.response; | ||
|
||
option java_multiple_files = false; | ||
option java_package = "com.tsurugidb.core.proto"; | ||
option java_outer_classname = "CoreResponse"; | ||
|
||
// empty message | ||
message Void {} | ||
|
||
// unknown error was occurred. | ||
message UnknownError { | ||
// the error message. | ||
string message = 1; | ||
} | ||
|
||
// update session expiration time | ||
message UpdateExpirationTime { | ||
reserved 1 to 10; | ||
|
||
// the response body. | ||
oneof result { | ||
// request is successfully completed. | ||
Void success = 11; | ||
|
||
// unknown error was occurred. | ||
UnknownError unknown_error = 12; | ||
} | ||
} | ||
|
||
// shutdown operation. | ||
message Shutdown { | ||
// no special message | ||
} |