R - the result typepublic abstract class BaseAbstractAcceptor<R> extends Object implements BaseAcceptor<R>
AbstractAcceptor and AbstractIntAcceptor.| Constructor and Description |
|---|
BaseAbstractAcceptor()
Construct a
BaseAbstractAcceptor. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the acceptor.
|
R |
getResult()
Get the result object (default implementation throws exception).
|
boolean |
isClosed()
Return
true if the acceptor is closed, that is, an end of data marker has been received. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflush, isCompletepublic BaseAbstractAcceptor()
BaseAbstractAcceptor.public boolean isClosed()
true if the acceptor is closed, that is, an end of data marker has been received.isClosed in interface BaseAcceptor<R>true if the acceptor is closedpublic void close()
throws Exception
close in interface AutoCloseableException - if the acceptor is not in the "complete" statepublic R getResult()
getResult in interface BaseAcceptor<R>IllegalStateException - the acceptor does not have a resultCopyright © 2020. All rights reserved.