public abstract static class TxGrpcCommunicator.Response extends Object
#ok(TxResponse), an error
{@link #error(StatusRuntimeException)} or a "completed" message completed().| Modifier and Type | Class and Description |
|---|---|
static class |
TxGrpcCommunicator.Response.Type
Enum indicating the type of
TxGrpcCommunicator.Response. |
| Constructor and Description |
|---|
Response() |
| Modifier and Type | Method and Description |
|---|---|
io.grpc.StatusRuntimeException |
error()
If this is an error, retrieve it.
|
GrpcGrakn.TxResponse |
ok()
If this is a successful response, retrieve it.
|
TxGrpcCommunicator.Response.Type |
type() |
public final TxGrpcCommunicator.Response.Type type()
public final GrpcGrakn.TxResponse ok()
IllegalStateException - if this is not a successful responsepublic final io.grpc.StatusRuntimeException error()
IllegalStateException - if this is not an errorCopyright © 2018 Grakn Labs Ltd. All rights reserved.