public class LocalConnector.LocalEndPoint extends ByteArrayEndPoint
NOIP| Constructor and Description |
|---|
LocalEndPoint() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
execute(Runnable task) |
String |
getResponse()
Wait for a response using a parser to detect the end of message
|
String |
getResponse(boolean head,
long time,
TimeUnit unit)
Wait for a response using a parser to detect the end of message
|
void |
onClose() |
void |
shutdownOutput() |
ByteBuffer |
waitForResponse(boolean head,
long time,
TimeUnit unit)
Wait for a response using a parser to detect the end of message
|
void |
waitUntilClosed() |
void |
waitUntilClosedOrIdleFor(long idleFor,
TimeUnit units) |
addInput, addInput, addInput, addInputAndExecute, addInputEOF, fill, flush, getOutput, getOutputString, getOutputString, getTransport, hasMore, isGrowOutput, isInputShutdown, isOpen, isOutputShutdown, needsFillInterest, onIncompleteFlush, reset, setGrowOutput, setOutput, shutdownInput, takeOutput, takeOutputString, takeOutputString, toString, waitForOutputclose, fillInterested, getConnection, getCreatedTimeStamp, getFillInterest, getLocalAddress, getRemoteAddress, getWriteFlusher, isFillInterested, isOptimizedForDirectBuffers, onIdleExpired, onOpen, setConnection, tryFillInterested, upgrade, writecheckIdleTimeout, getIdleFor, getIdleTimeout, getIdleTimestamp, getScheduler, notIdle, setIdleTimeoutclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetIdleTimeout, setIdleTimeoutprotected void execute(Runnable task)
execute in class ByteArrayEndPointpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in interface EndPointclose in class ByteArrayEndPointpublic void onClose()
onClose in interface EndPointonClose in class IdleTimeoutpublic void shutdownOutput()
shutdownOutput in interface EndPointshutdownOutput in class ByteArrayEndPointpublic void waitUntilClosed()
public void waitUntilClosedOrIdleFor(long idleFor,
TimeUnit units)
public String getResponse() throws Exception
Exception - if the response cannot be parsedpublic String getResponse(boolean head, long time, TimeUnit unit) throws Exception
head - whether the request is a HEAD requesttime - the maximum time to waitunit - the time unit of the timeout argumentException - if the response cannot be parsedpublic ByteBuffer waitForResponse(boolean head, long time, TimeUnit unit) throws Exception
head - whether the request is a HEAD requesttime - the maximum time to waitunit - the time unit of the timeout argumentException - if the response cannot be parsedCopyright © 1995–2017 Webtide. All rights reserved.