R - the result typepublic interface BaseAcceptor<R> extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
default void |
flush()
Flush the acceptor (required by some implementations - default is a no-operation).
|
default R |
getResult()
Get the result of the acceptor.
|
boolean |
isClosed()
Return
true if the pipeline is closed. |
default boolean |
isComplete()
Return
true if all sequences in the input are complete, that is, the input is not in the middle of a
sequence requiring more data. |
default void |
safeClose()
Close the acceptor, reporting any exceptions as a
RuntimeException. |
closeboolean isClosed()
true if the pipeline is closed.true if the pipeline is closeddefault R getResult()
UnsupportedOperationException - in all casesdefault boolean isComplete()
true if all sequences in the input are complete, that is, the input is not in the middle of a
sequence requiring more data. This should be overridden by acceptors that process complex sequences of input.true if the input is in the "complete" statedefault void flush()
default void safeClose()
RuntimeException. This avoids having to declare
exceptions on each method.RuntimeException - if thrown by close() methodCopyright © 2025. All rights reserved.