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 java.lang.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, java.util.concurrent.TimeUnit unit)
java.lang.Throwable
getError()
java.util.List<Notice>
getNotices()
void
handleError(java.lang.Throwable error, java.util.List<Notice> notices)
boolean
isValid()
-
-
-
Field Detail
-
error
protected java.lang.Throwable error
-
notices
protected java.util.List<Notice> notices
-
completed
protected java.util.concurrent.CountDownLatch completed
-
-
Method Detail
-
isValid
public boolean isValid()
-
getError
public java.lang.Throwable getError()
-
getNotices
public java.util.List<Notice> getNotices()
-
handleError
public void handleError(java.lang.Throwable error, java.util.List<Notice> notices)
- Specified by:
handleError
in interfaceRequestExecutor.ErrorHandler
-
await
public void await(long timeout, java.util.concurrent.TimeUnit unit) throws java.io.IOException
- Throws:
java.io.IOException
-
-