Class ReadAheadEndpoint
- java.lang.Object
- 
- org.apache.zookeeper.server.admin.ReadAheadEndpoint
 
- 
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- org.eclipse.jetty.io.EndPoint
 
 public class ReadAheadEndpoint extends Object implements org.eclipse.jetty.io.EndPoint 
- 
- 
Constructor SummaryConstructors Constructor Description ReadAheadEndpoint(org.eclipse.jetty.io.EndPoint channel, int readAheadLength)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intfill(ByteBuffer dst)voidfillInterested(org.eclipse.jetty.util.Callback v)booleanflush(ByteBuffer... v)byte[]getBytes()org.eclipse.jetty.io.ConnectiongetConnection()longgetCreatedTimeStamp()longgetIdleTimeout()InetSocketAddressgetLocalAddress()InetSocketAddressgetRemoteAddress()ObjectgetTransport()booleanisFillInterested()booleanisInputShutdown()booleanisOpen()booleanisOptimizedForDirectBuffers()booleanisOutputShutdown()voidonClose()voidonOpen()voidsetConnection(org.eclipse.jetty.io.Connection v)voidsetIdleTimeout(long v)voidshutdownOutput()booleantryFillInterested(org.eclipse.jetty.util.Callback v)voidupgrade(org.eclipse.jetty.io.Connection v)voidwrite(org.eclipse.jetty.util.Callback v, ByteBuffer... b)
 
- 
- 
- 
Method Detail- 
getLocalAddresspublic InetSocketAddress getLocalAddress() - Specified by:
- getLocalAddressin interface- org.eclipse.jetty.io.EndPoint
 
 - 
getRemoteAddresspublic InetSocketAddress getRemoteAddress() - Specified by:
- getRemoteAddressin interface- org.eclipse.jetty.io.EndPoint
 
 - 
isOpenpublic boolean isOpen() - Specified by:
- isOpenin interface- org.eclipse.jetty.io.EndPoint
 
 - 
getCreatedTimeStamppublic long getCreatedTimeStamp() - Specified by:
- getCreatedTimeStampin interface- org.eclipse.jetty.io.EndPoint
 
 - 
isOutputShutdownpublic boolean isOutputShutdown() - Specified by:
- isOutputShutdownin interface- org.eclipse.jetty.io.EndPoint
 
 - 
isInputShutdownpublic boolean isInputShutdown() - Specified by:
- isInputShutdownin interface- org.eclipse.jetty.io.EndPoint
 
 - 
shutdownOutputpublic void shutdownOutput() - Specified by:
- shutdownOutputin interface- org.eclipse.jetty.io.EndPoint
 
 - 
closepublic void close() - Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Specified by:
- closein interface- org.eclipse.jetty.io.EndPoint
 
 - 
getTransportpublic Object getTransport() - Specified by:
- getTransportin interface- org.eclipse.jetty.io.EndPoint
 
 - 
getIdleTimeoutpublic long getIdleTimeout() - Specified by:
- getIdleTimeoutin interface- org.eclipse.jetty.io.EndPoint
 
 - 
getConnectionpublic org.eclipse.jetty.io.Connection getConnection() - Specified by:
- getConnectionin interface- org.eclipse.jetty.io.EndPoint
 
 - 
onOpenpublic void onOpen() - Specified by:
- onOpenin interface- org.eclipse.jetty.io.EndPoint
 
 - 
onClosepublic void onClose() - Specified by:
- onClosein interface- org.eclipse.jetty.io.EndPoint
 
 - 
isOptimizedForDirectBufferspublic boolean isOptimizedForDirectBuffers() - Specified by:
- isOptimizedForDirectBuffersin interface- org.eclipse.jetty.io.EndPoint
 
 - 
isFillInterestedpublic boolean isFillInterested() - Specified by:
- isFillInterestedin interface- org.eclipse.jetty.io.EndPoint
 
 - 
tryFillInterestedpublic boolean tryFillInterested(org.eclipse.jetty.util.Callback v) - Specified by:
- tryFillInterestedin interface- org.eclipse.jetty.io.EndPoint
 
 - 
flushpublic boolean flush(ByteBuffer... v) throws IOException - Specified by:
- flushin interface- org.eclipse.jetty.io.EndPoint
- Throws:
- IOException
 
 - 
setIdleTimeoutpublic void setIdleTimeout(long v) - Specified by:
- setIdleTimeoutin interface- org.eclipse.jetty.io.EndPoint
 
 - 
writepublic void write(org.eclipse.jetty.util.Callback v, ByteBuffer... b) throws WritePendingException- Specified by:
- writein interface- org.eclipse.jetty.io.EndPoint
- Throws:
- WritePendingException
 
 - 
setConnectionpublic void setConnection(org.eclipse.jetty.io.Connection v) - Specified by:
- setConnectionin interface- org.eclipse.jetty.io.EndPoint
 
 - 
upgradepublic void upgrade(org.eclipse.jetty.io.Connection v) - Specified by:
- upgradein interface- org.eclipse.jetty.io.EndPoint
 
 - 
fillInterestedpublic void fillInterested(org.eclipse.jetty.util.Callback v) throws ReadPendingException- Specified by:
- fillInterestedin interface- org.eclipse.jetty.io.EndPoint
- Throws:
- ReadPendingException
 
 - 
fillpublic int fill(ByteBuffer dst) throws IOException - Specified by:
- fillin interface- org.eclipse.jetty.io.EndPoint
- Throws:
- IOException
 
 - 
getBytespublic byte[] getBytes() 
 
- 
 
-