src.test.resources.service_for_tests.thrift Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of thrift-server Show documentation
Show all versions of thrift-server Show documentation
Thrift Server implementation backed by LMAX Disruptor.
Shows better throughput/latency characteristics than build-in
THsHa and TThreadedSelector servers.
namespace java com.tinkerpop.thrift.test
enum OperationType {
ADD,
MUL,
DIV,
SUB
}
enum ArgType {
INT,
LONG,
}
struct Request {
1: required i32 id;
2: required binary arg1;
3: required binary arg2;
4: required ArgType argType;
5: required OperationType operationType;
}
struct Response {
1: i32 id;
2: binary result;
3: ArgType resType;
}
service TestService {
Response invoke(1: Request req);
oneway void ping();
}