Package com.clickhouse.client.grpc
Class ClickHouseStreamObserver
- java.lang.Object
-
- com.clickhouse.client.grpc.ClickHouseStreamObserver
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedClickHouseStreamObserver(ClickHouseConfig config, ClickHouseNode server)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawait(long timeout, TimeUnit unit)booleanawaitCompletion(long timeout, TimeUnit unit)protected voidcheckClosed()ThrowablegetError()ClickHouseInputStreamgetInputStream()ClickHouseResponseSummarygetSummary()booleanisCancelled()booleanisCompleted()voidonCompleted()voidonError(Throwable t)voidonNext(Result value)protected voidsetError(Throwable error)protected booleanupdateStatus(Result result)
-
-
-
Constructor Detail
-
ClickHouseStreamObserver
protected ClickHouseStreamObserver(ClickHouseConfig config, ClickHouseNode server)
-
-
Method Detail
-
checkClosed
protected void checkClosed()
-
setError
protected void setError(Throwable error)
-
updateStatus
protected boolean updateStatus(Result result)
-
isCompleted
public boolean isCompleted()
-
isCancelled
public boolean isCancelled()
-
getSummary
public ClickHouseResponseSummary getSummary()
-
getError
public Throwable getError()
-
onNext
public void onNext(Result value)
- Specified by:
onNextin interfaceio.grpc.stub.StreamObserver<Result>
-
onError
public void onError(Throwable t)
- Specified by:
onErrorin interfaceio.grpc.stub.StreamObserver<Result>
-
onCompleted
public void onCompleted()
- Specified by:
onCompletedin interfaceio.grpc.stub.StreamObserver<Result>
-
await
public boolean await(long timeout, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
awaitCompletion
public boolean awaitCompletion(long timeout, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
getInputStream
public ClickHouseInputStream getInputStream()
-
-