Class DefaultStreamWriter
- java.lang.Object
-
- org.glassfish.grizzly.streams.AbstractStreamWriter
-
- org.glassfish.grizzly.nio.transport.DefaultStreamWriter
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Stream,StreamWriter
public final class DefaultStreamWriter extends AbstractStreamWriter
- Author:
- Alexey Stashok
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultStreamWriter.Output-
Nested 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 Constructor Description DefaultStreamWriter(Connection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GrizzlyFuture<Integer>flush(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 Detail
-
DefaultStreamWriter
public DefaultStreamWriter(Connection connection)
-
-
Method Detail
-
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
-
-