org.glassfish.grizzly
Class AbstractReader<L>
java.lang.Object
org.glassfish.grizzly.AbstractReader<L>
- All Implemented Interfaces:
- Reader<L>
- Direct Known Subclasses:
- AbstractNIOAsyncQueueReader, TemporarySelectorReader
public abstract class AbstractReader<L>
- extends java.lang.Object
- implements Reader<L>
Abstract class, which provides transitive dependencies for overloaded
Reader methods.
- Author:
- Alexey Stashok
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.glassfish.grizzly.Reader |
read |
AbstractReader
public AbstractReader()
read
public final GrizzlyFuture<ReadResult<Buffer,L>> read(Connection connection)
throws java.io.IOException
- Method reads data.
- Specified by:
read in interface Reader<L>
- Parameters:
connection - the Connection to read from
- Returns:
Future, using which it's possible to check the result
- Throws:
java.io.IOException
read
public final GrizzlyFuture<ReadResult<Buffer,L>> read(Connection connection,
Buffer buffer)
throws java.io.IOException
- Method reads data to the buffer.
- Specified by:
read in interface Reader<L>
- Parameters:
connection - the Connection to read frombuffer - the buffer, where data will be read
- Returns:
Future, using which it's possible to check the result
- Throws:
java.io.IOException
read
public final GrizzlyFuture<ReadResult<Buffer,L>> read(Connection connection,
Buffer buffer,
CompletionHandler<ReadResult<Buffer,L>> completionHandler)
throws java.io.IOException
- Method reads data to the buffer.
- Specified by:
read in interface Reader<L>
- Parameters:
connection - the Connection to read frombuffer - the buffer, where data will be readcompletionHandler - CompletionHandler,
which will get notified, when read will be completed
- Returns:
Future, using which it's possible to check the result
- Throws:
java.io.IOException
Copyright © 2011 Oracle Corpration. All Rights Reserved.