private static class HttpInvokerServiceExporter.FlushGuardedOutputStream
extends java.io.FilterOutputStream
OutputStream
to guard against flush()
calls,
which are turned into no-ops.
Because ObjectOutputStream.close()
will in fact flush/drain
the underlying stream twice, this FilterOutputStream
will
guard against individual flush calls. Multiple flush calls can lead
to performance issues, since writes aren't gathered as they should be.
Constructor and Description |
---|
FlushGuardedOutputStream(java.io.OutputStream out) |
Modifier and Type | Method and Description |
---|---|
void |
flush() |