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.EndPoint
public InetSocketAddress getRemoteAddress()
getRemoteAddress
in interface org.eclipse.jetty.io.EndPoint
public boolean isOpen()
isOpen
in interface org.eclipse.jetty.io.EndPoint
public long getCreatedTimeStamp()
getCreatedTimeStamp
in interface org.eclipse.jetty.io.EndPoint
public boolean isOutputShutdown()
isOutputShutdown
in interface org.eclipse.jetty.io.EndPoint
public boolean isInputShutdown()
isInputShutdown
in interface org.eclipse.jetty.io.EndPoint
public void shutdownOutput()
shutdownOutput
in interface org.eclipse.jetty.io.EndPoint
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in interface org.eclipse.jetty.io.EndPoint
public Object getTransport()
getTransport
in interface org.eclipse.jetty.io.EndPoint
public long getIdleTimeout()
getIdleTimeout
in interface org.eclipse.jetty.io.EndPoint
public org.eclipse.jetty.io.Connection getConnection()
getConnection
in interface org.eclipse.jetty.io.EndPoint
public void onOpen()
onOpen
in interface org.eclipse.jetty.io.EndPoint
public void onClose()
onClose
in interface org.eclipse.jetty.io.EndPoint
public boolean isOptimizedForDirectBuffers()
isOptimizedForDirectBuffers
in interface org.eclipse.jetty.io.EndPoint
public boolean isFillInterested()
isFillInterested
in interface org.eclipse.jetty.io.EndPoint
public boolean tryFillInterested(org.eclipse.jetty.util.Callback v)
tryFillInterested
in interface org.eclipse.jetty.io.EndPoint
public boolean flush(ByteBuffer... v) throws IOException
flush
in interface org.eclipse.jetty.io.EndPoint
IOException
public void setIdleTimeout(long v)
setIdleTimeout
in interface org.eclipse.jetty.io.EndPoint
public void write(org.eclipse.jetty.util.Callback v, ByteBuffer... b) throws WritePendingException
write
in interface org.eclipse.jetty.io.EndPoint
WritePendingException
public void setConnection(org.eclipse.jetty.io.Connection v)
setConnection
in interface org.eclipse.jetty.io.EndPoint
public void upgrade(org.eclipse.jetty.io.Connection v)
upgrade
in interface org.eclipse.jetty.io.EndPoint
public void fillInterested(org.eclipse.jetty.util.Callback v) throws ReadPendingException
fillInterested
in interface org.eclipse.jetty.io.EndPoint
ReadPendingException
public int fill(ByteBuffer dst) throws IOException
fill
in interface org.eclipse.jetty.io.EndPoint
IOException
public byte[] getBytes()
Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.