org.glassfish.grizzly.nio.transport
Class TCPNIOStreamWriter
java.lang.Object
org.glassfish.grizzly.streams.AbstractStreamWriter
org.glassfish.grizzly.nio.transport.TCPNIOStreamWriter
- All Implemented Interfaces:
- Closeable, StreamWriter
public class TCPNIOStreamWriter
- extends AbstractStreamWriter
- Author:
- Alexey Stashok
| Methods inherited from class org.glassfish.grizzly.streams.AbstractStreamWriter |
close, close, ensure, flush, getBuffer, getBufferSize, getConnection, getTimeout, isBlocking, newBuffer, overflow, overflow, setBlocking, setBufferSize, setConnection, setTimeout, writeBoolean, writeBooleanArray, writeBuffer, writeBuffer, writeByte, writeByteArray, writeByteArray, writeChar, writeCharArray, writeDouble, writeDoubleArray, writeFloat, writeFloatArray, writeInt, writeIntArray, writeLong, writeLongArray, writeShort, writeShortArray, writeStream |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TCPNIOStreamWriter
public TCPNIOStreamWriter(TCPNIOConnection connection)
flush
public Future<Integer> flush(CompletionHandler<Integer> completionHandler)
throws IOException
- Description copied from class:
AbstractStreamWriter
- Cause the overflow handler to be called even if buffer is not full.
- Specified by:
flush in interface StreamWriter- Overrides:
flush in class AbstractStreamWriter
- Throws:
IOException
flush0
protected Future<Integer> flush0(Buffer current,
CompletionHandler<Integer> completionHandler)
throws IOException
- Specified by:
flush0 in class AbstractStreamWriter
- Throws:
IOException
close0
protected Future<Integer> close0(CompletionHandler<Integer> completionHandler)
throws IOException
- Specified by:
close0 in class AbstractStreamWriter
- Throws:
IOException
Copyright © 2009 SUN Microsystems. All Rights Reserved.