Package com.impossibl.postgres.protocol
Class RequestExecutorHandlers.Result
- java.lang.Object
-
- com.impossibl.postgres.protocol.RequestExecutorHandlers.Result
-
- All Implemented Interfaces:
RequestExecutor.ErrorHandler
- Direct Known Subclasses:
RequestExecutorHandlers.PrepareResult
,RequestExecutorHandlers.SynchronizedResult
- Enclosing class:
- RequestExecutorHandlers
public abstract static class RequestExecutorHandlers.Result extends Object implements RequestExecutor.ErrorHandler
-
-
Constructor Summary
Constructors Constructor Description Result()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
await(long timeout, TimeUnit unit)
Throwable
getError()
List<Notice>
getNotices()
void
handleError(Throwable error, List<Notice> notices)
boolean
isCompleted()
boolean
isValid()
-
-
-
Field Detail
-
error
protected Throwable error
-
completed
protected CountDownLatch completed
-
-
Method Detail
-
isValid
public boolean isValid()
-
getError
public Throwable getError()
-
handleError
public void handleError(Throwable error, List<Notice> notices)
- Specified by:
handleError
in interfaceRequestExecutor.ErrorHandler
-
isCompleted
public boolean isCompleted()
-
await
public void await(long timeout, TimeUnit unit) throws IOException
- Throws:
IOException
-
-