java.io.Closeable, java.lang.AutoCloseable, EndPointpublic class LocalConnector.LocalEndPoint extends ByteArrayEndPoint
| Constructor | Description |
|---|---|
LocalEndPoint() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
doShutdownOutput() |
|
protected void |
execute(java.lang.Runnable task) |
|
java.lang.String |
getResponse() |
Wait for a response using a parser to detect the end of message
|
java.lang.String |
getResponse(boolean head,
long time,
java.util.concurrent.TimeUnit unit) |
Wait for a response using a parser to detect the end of message
|
java.nio.ByteBuffer |
getResponseData() |
Remaining output ByteBuffer after calls to
getResponse() or waitForResponse(boolean, long, TimeUnit) |
void |
onClose() |
|
java.nio.ByteBuffer |
waitForResponse(boolean head,
long time,
java.util.concurrent.TimeUnit unit) |
Wait for a response using a parser to detect the end of message
|
void |
waitUntilClosed() |
|
void |
waitUntilClosedOrIdleFor(long idleFor,
java.util.concurrent.TimeUnit units) |
checkFill, checkFlush, close, close, doShutdownInput, fillInterested, getConnection, getCreatedTimeStamp, getFillInterest, getWriteFlusher, isFillInterested, isInputShutdown, isOpen, isOptimizedForDirectBuffers, isOutputShutdown, onClose, onIdleExpired, onOpen, setConnection, shutdownInput, shutdownOutput, toConnectionString, toEndPointString, tryFillInterested, upgrade, writeaddInput, addInput, addInput, addInputAndExecute, addInputEOF, doClose, fill, flush, getLocalAddress, getOutput, getOutputString, getOutputString, getRemoteAddress, getTransport, hasMore, isGrowOutput, needsFillInterest, onIncompleteFlush, reset, setGrowOutput, setOutput, takeOutput, takeOutputString, takeOutputString, toString, waitForOutputgetIdleTimeout, setIdleTimeoutcheckIdleTimeout, getIdleFor, getIdleTimeout, getIdleTimestamp, getScheduler, notIdle, setIdleTimeoutprotected void execute(java.lang.Runnable task)
execute in class ByteArrayEndPointpublic void onClose()
onClose in interface EndPointonClose in class AbstractEndPointpublic void doShutdownOutput()
doShutdownOutput in class ByteArrayEndPointpublic void waitUntilClosed()
public void waitUntilClosedOrIdleFor(long idleFor,
java.util.concurrent.TimeUnit units)
public java.nio.ByteBuffer getResponseData()
getResponse() or waitForResponse(boolean, long, TimeUnit)public java.lang.String getResponse()
throws java.lang.Exception
java.lang.Exception - if the response cannot be parsedpublic java.lang.String getResponse(boolean head,
long time,
java.util.concurrent.TimeUnit unit)
throws java.lang.Exception
head - whether the request is a HEAD requesttime - the maximum time to waitunit - the time unit of the timeout argumentjava.lang.Exception - if the response cannot be parsedpublic java.nio.ByteBuffer waitForResponse(boolean head,
long time,
java.util.concurrent.TimeUnit unit)
throws java.lang.Exception
head - whether the request is a HEAD requesttime - the maximum time to waitunit - the time unit of the timeout argumentjava.lang.Exception - if the response cannot be parsedCopyright © 1995–2018 Webtide. All rights reserved.