java.lang.Object
org.glassfish.grizzly.streams.AbstractStreamWriter
org.glassfish.grizzly.nio.transport.DefaultStreamWriter
- All Implemented Interfaces:
Closeable,AutoCloseable,Stream,StreamWriter
- Author:
- Alexey Stashok
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.glassfish.grizzly.streams.AbstractStreamWriter
AbstractStreamWriter.DisposeBufferCompletionHandler -
Field Summary
Fields inherited from class org.glassfish.grizzly.streams.AbstractStreamWriter
isOutputBuffered, logger, output, ZERO, ZERO_READY_FUTURE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionflush(CompletionHandler<Integer> completionHandler) Cause the overflow handler to be called even if buffer is not full.Methods inherited from class org.glassfish.grizzly.streams.AbstractStreamWriter
close, close, encode, encode, flush, getConnection, getTimeout, isClosed, setTimeout, writeBoolean, writeBooleanArray, writeBuffer, writeByte, writeByteArray, writeByteArray, writeChar, writeCharArray, writeDouble, writeDoubleArray, writeFloat, writeFloatArray, writeInt, writeIntArray, writeLong, writeLongArray, writeShort, writeShortArray
-
Constructor Details
-
DefaultStreamWriter
-
-
Method Details
-
flush
public GrizzlyFuture<Integer> flush(CompletionHandler<Integer> completionHandler) throws IOException Description copied from class:AbstractStreamWriterCause the overflow handler to be called even if buffer is not full.- Specified by:
flushin interfaceStreamWriter- Overrides:
flushin classAbstractStreamWriter- Throws:
IOException
-