public abstract static class Transceiver.Response extends Object
#ok(Transaction.Res), an error
{@link #error(StatusRuntimeException)} or a "completed" message completed().| Modifier and Type | Class and Description |
|---|---|
static class |
Transceiver.Response.Type
Enum indicating the type of
Transceiver.Response. |
| Constructor and Description |
|---|
Response() |
| Modifier and Type | Method and Description |
|---|---|
io.grpc.StatusRuntimeException |
error()
If this is an error, retrieve it.
|
SessionProto.Transaction.Res |
ok()
If this is a successful response, retrieve it.
|
Transceiver.Response.Type |
type() |
public final Transceiver.Response.Type type()
public final SessionProto.Transaction.Res 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.