public final class ServiceVersionClientServiceHandler extends ServiceVersionClientServiceGrpc.ServiceVersionClientServiceImplBase
Constructor and Description |
---|
ServiceVersionClientServiceHandler(Set<ServiceType> services,
java.util.function.Supplier<NodeState> nodeStateSupplier)
Creates service version handler that allows given services.
|
Modifier and Type | Method and Description |
---|---|
void |
getServiceVersion(GetServiceVersionPRequest request,
io.grpc.stub.StreamObserver<GetServiceVersionPResponse> responseObserver)
Returns the version of the master service.
|
bindService
public ServiceVersionClientServiceHandler(Set<ServiceType> services, @Nullable java.util.function.Supplier<NodeState> nodeStateSupplier)
services
- services to allownodeStateSupplier
- the supplier to get the node statepublic void getServiceVersion(GetServiceVersionPRequest request, io.grpc.stub.StreamObserver<GetServiceVersionPResponse> responseObserver)
ServiceVersionClientServiceGrpc.ServiceVersionClientServiceImplBase
Returns the version of the master service. NOTE: The version should be updated every time a backwards incompatible API change occurs.
getServiceVersion
in class ServiceVersionClientServiceGrpc.ServiceVersionClientServiceImplBase
Copyright © 2023. All Rights Reserved.