|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Writer<L>
Implementatios of this interface are able to write data from a Buffer
to Connection.
There are two basic Writer implementations in Grizzly:
AsyncQueueWriter, TemporarySelectorWriter.
| Method Summary | |
|---|---|
Future<WriteResult<Buffer,L>> |
write(Connection connection,
Buffer buffer)
Method writes the buffer. |
Future<WriteResult<Buffer,L>> |
write(Connection connection,
Buffer buffer,
CompletionHandler<WriteResult<Buffer,L>> completionHandler)
Method writes the buffer. |
Future<WriteResult<Buffer,L>> |
write(Connection connection,
Buffer buffer,
CompletionHandler<WriteResult<Buffer,L>> completionHandler,
Interceptor<WriteResult> interceptor)
Method writes the buffer. |
Future<WriteResult<Buffer,L>> |
write(Connection connection,
L dstAddress,
Buffer buffer)
Method writes the buffer to the specific address. |
Future<WriteResult<Buffer,L>> |
write(Connection connection,
L dstAddress,
Buffer buffer,
CompletionHandler<WriteResult<Buffer,L>> completionHandler)
Method writes the buffer to the specific address. |
Future<WriteResult<Buffer,L>> |
write(Connection connection,
L dstAddress,
Buffer buffer,
CompletionHandler<WriteResult<Buffer,L>> completionHandler,
Interceptor<WriteResult> interceptor)
Method writes the buffer to the specific address. |
| Method Detail |
|---|
Future<WriteResult<Buffer,L>> write(Connection connection,
Buffer buffer)
throws IOException
connection - the Connection to write tobuffer - the buffer, from which the data will be written
Future, using which it's possible to check the
result
IOException
Future<WriteResult<Buffer,L>> write(Connection connection,
Buffer buffer,
CompletionHandler<WriteResult<Buffer,L>> completionHandler)
throws IOException
connection - the Connection to write tobuffer - the buffer, from which the data will be writtencompletionHandler - CompletionHandler,
which will get notified, when write will be completed
Future, using which it's possible to check the
result
IOException
Future<WriteResult<Buffer,L>> write(Connection connection,
Buffer buffer,
CompletionHandler<WriteResult<Buffer,L>> completionHandler,
Interceptor<WriteResult> interceptor)
throws IOException
connection - the Connection to write tobuffer - the buffer, from which the data will be writtencompletionHandler - CompletionHandler,
which will get notified, when write will be completedinterceptor - Interceptor, which will be able to intercept
control each time new portion of a data was written from a
buffer.
The interceptor can decide, whether asynchronous write is
completed or not, or provide other processing instructions.
Future, using which it's possible to check the
result
IOException
Future<WriteResult<Buffer,L>> write(Connection connection,
L dstAddress,
Buffer buffer)
throws IOException
connection - the Connection to write todstAddress - the destination address the buffer will be
sent tobuffer - the buffer, from which the data will be written
Future, using which it's possible to check the
result
IOException
Future<WriteResult<Buffer,L>> write(Connection connection,
L dstAddress,
Buffer buffer,
CompletionHandler<WriteResult<Buffer,L>> completionHandler)
throws IOException
connection - the Connection to write todstAddress - the destination address the buffer will be
sent tobuffer - the buffer, from which the data will be writtencompletionHandler - CompletionHandler,
which will get notified, when write will be completed
Future, using which it's possible to check the
result
IOException
Future<WriteResult<Buffer,L>> write(Connection connection,
L dstAddress,
Buffer buffer,
CompletionHandler<WriteResult<Buffer,L>> completionHandler,
Interceptor<WriteResult> interceptor)
throws IOException
connection - the Connection to write todstAddress - the destination address the buffer will be
sent tobuffer - the buffer, from which the data will be writtencompletionHandler - CompletionHandler,
which will get notified, when write will be completedinterceptor - Interceptor, which will be able to intercept
control each time new portion of a data was written from a
buffer.
The interceptor can decide, whether asynchronous write is
completed or not, or provide other processing instructions.
Future, using which it's possible to check the
result
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||