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 Object
- implements Reader<L>
Abstract class, which provides transitive dependencies for overloaded
Reader#read(...) 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 Future<ReadResult<Buffer,L>> read(Connection connection)
throws 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:
IOException
read
public Future<ReadResult<Buffer,L>> read(Connection connection,
Buffer buffer)
throws 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:
IOException
read
public Future<ReadResult<Buffer,L>> read(Connection connection,
Buffer buffer,
CompletionHandler<ReadResult<Buffer,L>> completionHandler)
throws 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:
IOException
Copyright © 2009 SUN Microsystems. All Rights Reserved.