public class ReadAheadEndpoint extends Object implements org.eclipse.jetty.io.EndPoint
| Constructor and Description |
|---|
ReadAheadEndpoint(org.eclipse.jetty.io.EndPoint channel,
int readAheadLength) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
fill(ByteBuffer dst) |
void |
fillInterested(org.eclipse.jetty.util.Callback v) |
boolean |
flush(ByteBuffer... v) |
byte[] |
getBytes() |
org.eclipse.jetty.io.Connection |
getConnection() |
long |
getCreatedTimeStamp() |
long |
getIdleTimeout() |
InetSocketAddress |
getLocalAddress() |
InetSocketAddress |
getRemoteAddress() |
Object |
getTransport() |
boolean |
isFillInterested() |
boolean |
isInputShutdown() |
boolean |
isOpen() |
boolean |
isOptimizedForDirectBuffers() |
boolean |
isOutputShutdown() |
void |
onClose() |
void |
onOpen() |
void |
setConnection(org.eclipse.jetty.io.Connection v) |
void |
setIdleTimeout(long v) |
void |
shutdownOutput() |
boolean |
tryFillInterested(org.eclipse.jetty.util.Callback v) |
void |
upgrade(org.eclipse.jetty.io.Connection v) |
void |
write(org.eclipse.jetty.util.Callback v,
ByteBuffer... b) |
public ReadAheadEndpoint(org.eclipse.jetty.io.EndPoint channel,
int readAheadLength)
public InetSocketAddress getLocalAddress()
getLocalAddress in interface org.eclipse.jetty.io.EndPointpublic InetSocketAddress getRemoteAddress()
getRemoteAddress in interface org.eclipse.jetty.io.EndPointpublic boolean isOpen()
isOpen in interface org.eclipse.jetty.io.EndPointpublic long getCreatedTimeStamp()
getCreatedTimeStamp in interface org.eclipse.jetty.io.EndPointpublic boolean isOutputShutdown()
isOutputShutdown in interface org.eclipse.jetty.io.EndPointpublic boolean isInputShutdown()
isInputShutdown in interface org.eclipse.jetty.io.EndPointpublic void shutdownOutput()
shutdownOutput in interface org.eclipse.jetty.io.EndPointpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in interface org.eclipse.jetty.io.EndPointpublic Object getTransport()
getTransport in interface org.eclipse.jetty.io.EndPointpublic long getIdleTimeout()
getIdleTimeout in interface org.eclipse.jetty.io.EndPointpublic org.eclipse.jetty.io.Connection getConnection()
getConnection in interface org.eclipse.jetty.io.EndPointpublic void onOpen()
onOpen in interface org.eclipse.jetty.io.EndPointpublic void onClose()
onClose in interface org.eclipse.jetty.io.EndPointpublic boolean isOptimizedForDirectBuffers()
isOptimizedForDirectBuffers in interface org.eclipse.jetty.io.EndPointpublic boolean isFillInterested()
isFillInterested in interface org.eclipse.jetty.io.EndPointpublic boolean tryFillInterested(org.eclipse.jetty.util.Callback v)
tryFillInterested in interface org.eclipse.jetty.io.EndPointpublic boolean flush(ByteBuffer... v) throws IOException
flush in interface org.eclipse.jetty.io.EndPointIOExceptionpublic void setIdleTimeout(long v)
setIdleTimeout in interface org.eclipse.jetty.io.EndPointpublic void write(org.eclipse.jetty.util.Callback v,
ByteBuffer... b)
throws WritePendingException
write in interface org.eclipse.jetty.io.EndPointWritePendingExceptionpublic void setConnection(org.eclipse.jetty.io.Connection v)
setConnection in interface org.eclipse.jetty.io.EndPointpublic void upgrade(org.eclipse.jetty.io.Connection v)
upgrade in interface org.eclipse.jetty.io.EndPointpublic void fillInterested(org.eclipse.jetty.util.Callback v)
throws ReadPendingException
fillInterested in interface org.eclipse.jetty.io.EndPointReadPendingExceptionpublic int fill(ByteBuffer dst) throws IOException
fill in interface org.eclipse.jetty.io.EndPointIOExceptionpublic byte[] getBytes()
Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.