public class BinaryUploaderStream extends Object implements StreamObserver<sila2.org.silastandard.SiLABinaryTransfer.UploadChunkResponse>
| Constructor and Description |
|---|
BinaryUploaderStream(@NonNull BinaryUploader binaryUploader,
@NonNull String binaryTransferUUID)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
onCompleted()
Callback when the stream is closed
|
void |
onError(Throwable throwable)
Callback when an error is received
|
void |
onNext(sila2.org.silastandard.SiLABinaryTransfer.UploadChunkResponse uploadChunkResponse)
Callback when a get response is received
|
void |
startUpload(StreamObserver<sila2.org.silastandard.SiLABinaryTransfer.UploadChunkRequest> responseObserver)
Start upload by sending a upload request
BinaryUploader.getNextChunkUploadRequest(String) |
public void startUpload(StreamObserver<sila2.org.silastandard.SiLABinaryTransfer.UploadChunkRequest> responseObserver)
BinaryUploader.getNextChunkUploadRequest(String)responseObserver - the response observerpublic void onNext(sila2.org.silastandard.SiLABinaryTransfer.UploadChunkResponse uploadChunkResponse)
onNext in interface StreamObserver<sila2.org.silastandard.SiLABinaryTransfer.UploadChunkResponse>uploadChunkResponse - the upload chunk responsepublic void onError(Throwable throwable)
onError in interface StreamObserver<sila2.org.silastandard.SiLABinaryTransfer.UploadChunkResponse>throwable - the errorpublic void onCompleted()
onCompleted in interface StreamObserver<sila2.org.silastandard.SiLABinaryTransfer.UploadChunkResponse>Copyright © 2022 SiLA Java Developers. All rights reserved.