public interface Client
Modifier and Type | Field and Description |
---|---|
static io.grpc.Metadata.Key<com.scalar.dl.rpc.Status> |
STATUS_TRAILER_KEY |
Modifier and Type | Method and Description |
---|---|
default <T> void |
accept(com.scalar.dl.ledger.service.ThrowableConsumer<T> f,
T request) |
default <T,R> R |
apply(com.scalar.dl.ledger.service.ThrowableFunction<T,R> f,
T request) |
javax.json.JsonObject |
list(com.scalar.dl.rpc.ContractsListingRequest request) |
void |
register(com.scalar.dl.rpc.CertificateRegistrationRequest request) |
void |
register(com.scalar.dl.rpc.ContractRegistrationRequest request) |
void |
register(com.scalar.dl.rpc.SecretRegistrationRequest request) |
void |
shutdown() |
default void |
throwExceptionWithStatusCode(java.lang.Exception e) |
default javax.json.JsonObject |
toJsonObject(java.lang.String json) |
static final io.grpc.Metadata.Key<com.scalar.dl.rpc.Status> STATUS_TRAILER_KEY
void shutdown()
void register(com.scalar.dl.rpc.CertificateRegistrationRequest request)
void register(com.scalar.dl.rpc.SecretRegistrationRequest request)
void register(com.scalar.dl.rpc.ContractRegistrationRequest request)
javax.json.JsonObject list(com.scalar.dl.rpc.ContractsListingRequest request)
default <T> void accept(com.scalar.dl.ledger.service.ThrowableConsumer<T> f, T request)
default <T,R> R apply(com.scalar.dl.ledger.service.ThrowableFunction<T,R> f, T request)
default void throwExceptionWithStatusCode(java.lang.Exception e)
default javax.json.JsonObject toJsonObject(java.lang.String json)