com.sun.grizzly.nio.transport
Class TCPNIOStreamWriter

java.lang.Object
  extended by com.sun.grizzly.streams.AbstractStreamWriter
      extended by com.sun.grizzly.nio.transport.TCPNIOStreamWriter
All Implemented Interfaces:
StreamWriter, Closeable

public class TCPNIOStreamWriter
extends AbstractStreamWriter

Author:
Alexey Stashok

Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.grizzly.streams.AbstractStreamWriter
AbstractStreamWriter.DisposeBufferCompletionHandler
 
Field Summary
 
Fields inherited from class com.sun.grizzly.streams.AbstractStreamWriter
buffer, bufferSize, ZERO, ZERO_READY_FUTURE
 
Constructor Summary
TCPNIOStreamWriter(TCPNIOConnection connection)
           
 
Method Summary
protected  Future<Integer> close0(CompletionHandler<Integer> completionHandler)
           
 Future<Integer> flush(CompletionHandler<Integer> completionHandler)
          Cause the overflow handler to be called even if buffer is not full.
protected  Future<Integer> flush0(Buffer current, CompletionHandler<Integer> completionHandler)
           
 
Methods inherited from class com.sun.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
 

Constructor Detail

TCPNIOStreamWriter

public TCPNIOStreamWriter(TCPNIOConnection connection)
Method Detail

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.