public abstract class AbstractDisposableUserClientConnection extends Object implements UserClientConnection
| Modifier and Type | Field and Description |
|---|---|
protected UserBitShared.DrillPBError |
error |
protected CountDownLatch |
latch |
protected String |
queryState |
| Constructor and Description |
|---|
AbstractDisposableUserClientConnection() |
| Modifier and Type | Method and Description |
|---|---|
void |
await()
Wait indefinitely until the query is completed.
|
boolean |
await(long timeoutMillis)
Wait until the query has completed or timeout is passed.
|
UserBitShared.DrillPBError |
getError() |
String |
getQueryState() |
void |
sendResult(RpcOutcomeListener<GeneralRPCProtos.Ack> listener,
UserBitShared.QueryResult result)
Send query result outcome to client.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetClosureFuture, getRemoteAddress, getSession, sendDataprotected final CountDownLatch latch
protected volatile UserBitShared.DrillPBError error
protected String queryState
public AbstractDisposableUserClientConnection()
public boolean await(long timeoutMillis)
throws InterruptedException
InterruptedExceptionpublic void await()
throws Exception
Exceptionpublic void sendResult(RpcOutcomeListener<GeneralRPCProtos.Ack> listener, UserBitShared.QueryResult result)
UserClientConnectionlistener.sendResult in interface UserClientConnectionlistener - The listenerresult - The query result to be sentpublic UserBitShared.DrillPBError getError()
public String getQueryState()
Copyright © 2022 The Apache Software Foundation. All rights reserved.