public class RegisterStreamObserver extends Object implements io.grpc.stub.StreamObserver<RegisterWorkerPRequest>
DefaultBlockMaster.WorkerRegisterStreamGCExecutor
.Constructor and Description |
---|
RegisterStreamObserver(BlockMaster blockMaster,
io.grpc.stub.StreamObserver<RegisterWorkerPResponse> responseObserver)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
onCompleted() |
void |
onError(Throwable t) |
void |
onNext(RegisterWorkerPRequest chunk) |
public RegisterStreamObserver(BlockMaster blockMaster, io.grpc.stub.StreamObserver<RegisterWorkerPResponse> responseObserver)
blockMaster
- the block masterresponseObserver
- used to send response to the worker sidepublic void onNext(RegisterWorkerPRequest chunk)
onNext
in interface io.grpc.stub.StreamObserver<RegisterWorkerPRequest>
public void onError(Throwable t)
onError
in interface io.grpc.stub.StreamObserver<RegisterWorkerPRequest>
public void onCompleted()
onCompleted
in interface io.grpc.stub.StreamObserver<RegisterWorkerPRequest>
Copyright © 2023. All Rights Reserved.