Package com.daml.ledger.api.v1.admin
Class ConfigManagementServiceGrpc.ConfigManagementServiceFutureStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractFutureStub<ConfigManagementServiceGrpc.ConfigManagementServiceFutureStub>
-
- com.daml.ledger.api.v1.admin.ConfigManagementServiceGrpc.ConfigManagementServiceFutureStub
-
- Enclosing class:
- ConfigManagementServiceGrpc
public static final class ConfigManagementServiceGrpc.ConfigManagementServiceFutureStub extends io.grpc.stub.AbstractFutureStub<ConfigManagementServiceGrpc.ConfigManagementServiceFutureStub>
Status: experimental interface, will change before it is deemed production ready The ledger configuration management service provides methods for the ledger administrator to change the current ledger configuration. The services provides methods to modify different aspects of the configuration.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ConfigManagementServiceGrpc.ConfigManagementServiceFutureStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
com.google.common.util.concurrent.ListenableFuture<ConfigManagementServiceOuterClass.GetTimeModelResponse>
getTimeModel(ConfigManagementServiceOuterClass.GetTimeModelRequest request)
Return the currently active time model and the current configuration generation.com.google.common.util.concurrent.ListenableFuture<ConfigManagementServiceOuterClass.SetTimeModelResponse>
setTimeModel(ConfigManagementServiceOuterClass.SetTimeModelRequest request)
Set the ledger time model.
-
-
-
Method Detail
-
build
protected ConfigManagementServiceGrpc.ConfigManagementServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<ConfigManagementServiceGrpc.ConfigManagementServiceFutureStub>
-
getTimeModel
public com.google.common.util.concurrent.ListenableFuture<ConfigManagementServiceOuterClass.GetTimeModelResponse> getTimeModel(ConfigManagementServiceOuterClass.GetTimeModelRequest request)
Return the currently active time model and the current configuration generation. Errors: - ``UNAUTHENTICATED``: if the request does not include a valid access token - ``PERMISSION_DENIED``: if the claims in the token are insufficient to perform a given operation
-
setTimeModel
public com.google.common.util.concurrent.ListenableFuture<ConfigManagementServiceOuterClass.SetTimeModelResponse> setTimeModel(ConfigManagementServiceOuterClass.SetTimeModelRequest request)
Set the ledger time model. Errors: - ``UNAUTHENTICATED``: if the request does not include a valid access token - ``PERMISSION_DENIED``: if the claims in the token are insufficient to perform a given operation - ``INVALID_ARGUMENT``: if arguments are invalid, or the provided configuration generation does not match the current active configuration generation. The caller is expected to retry by again fetching current time model using 'GetTimeModel', applying changes and resubmitting. - ``DEADLINE_EXCEEDED``: if the request times out. Note that a timed out request may have still been committed to the ledger. Application should re-query the current time model before retrying. - ``FAILED_PRECONDITION``: if the request is rejected. - ``UNIMPLEMENTED``: if this method is not supported by the backing ledger.
-
-