Package com.clickhouse.client.grpc
Class ClickHouseGrpcFuture
- java.lang.Object
-
- com.clickhouse.client.grpc.ClickHouseGrpcFuture
-
- All Implemented Interfaces:
Future<ClickHouseResponse>
@Deprecated public class ClickHouseGrpcFuture extends Object implements Future<ClickHouseResponse>
Deprecated.will be removed in v0.3.3Custom future object for gRPC.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedClickHouseGrpcFuture(ClickHouseNode server, ClickHouseRequest<?> request, io.grpc.stub.StreamObserver<QueryInfo> requestObserver, ClickHouseStreamObserver responseObserver)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancancel(boolean mayInterruptIfRunning)Deprecated.ClickHouseResponseget()Deprecated.ClickHouseResponseget(long timeout, TimeUnit unit)Deprecated.ClickHouseNodegetServer()Deprecated.booleanisCancelled()Deprecated.booleanisDone()Deprecated.
-
-
-
Constructor Detail
-
ClickHouseGrpcFuture
protected ClickHouseGrpcFuture(ClickHouseNode server, ClickHouseRequest<?> request, io.grpc.stub.StreamObserver<QueryInfo> requestObserver, ClickHouseStreamObserver responseObserver)
Deprecated.
-
-
Method Detail
-
getServer
public ClickHouseNode getServer()
Deprecated.
-
cancel
public boolean cancel(boolean mayInterruptIfRunning)
Deprecated.- Specified by:
cancelin interfaceFuture<ClickHouseResponse>
-
isCancelled
public boolean isCancelled()
Deprecated.- Specified by:
isCancelledin interfaceFuture<ClickHouseResponse>
-
isDone
public boolean isDone()
Deprecated.- Specified by:
isDonein interfaceFuture<ClickHouseResponse>
-
get
public ClickHouseResponse get() throws InterruptedException, ExecutionException
Deprecated.- Specified by:
getin interfaceFuture<ClickHouseResponse>- Throws:
InterruptedExceptionExecutionException
-
get
public ClickHouseResponse get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
Deprecated.- Specified by:
getin interfaceFuture<ClickHouseResponse>- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
-