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, wait
getClosureFuture, getRemoteAddress, getSession, sendData
protected final CountDownLatch latch
protected volatile UserBitShared.DrillPBError error
protected String queryState
public AbstractDisposableUserClientConnection()
public boolean await(long timeoutMillis) throws InterruptedException
InterruptedException
public void await() throws Exception
Exception
public void sendResult(RpcOutcomeListener<GeneralRPCProtos.Ack> listener, UserBitShared.QueryResult result)
UserClientConnection
listener
.sendResult
in interface UserClientConnection
listener
- The listenerresult
- The query result to be sentpublic UserBitShared.DrillPBError getError()
public String getQueryState()
Copyright © 1970 The Apache Software Foundation. All rights reserved.