Package com.yahoo.container.jdisc
Class MaxPendingContentChannelOutputStream
java.lang.Object
java.io.OutputStream
com.yahoo.container.jdisc.ContentChannelOutputStream
com.yahoo.container.jdisc.MaxPendingContentChannelOutputStream
- All Implemented Interfaces:
com.yahoo.io.WritableByteTransmitter,Closeable,Flushable,AutoCloseable
- Author:
- baldersheim
-
Constructor Summary
ConstructorsConstructorDescriptionMaxPendingContentChannelOutputStream(ContentChannel endpoint, long maxPending) -
Method Summary
Modifier and TypeMethodDescriptionvoidflush()Flush the internal buffers, does not touch the ContentChannel.voidsend(ByteBuffer src) Write a ByteBuffer to the wrapped ContentChannel.Methods inherited from class com.yahoo.container.jdisc.ContentChannelOutputStream
close, nonCopyingWrite, nonCopyingWrite, send, write, write, write, writtenMethods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
MaxPendingContentChannelOutputStream
-
-
Method Details
-
send
Description copied from class:ContentChannelOutputStreamWrite a ByteBuffer to the wrapped ContentChannel. Do invokeContentChannelOutputStream.flush()before send(ByteBuffer) to avoid garbled output if the stream API has been accessed before using the ByteBuffer based API. As with ContentChannel, this transfers ownership of the ByteBuffer to this stream.- Specified by:
sendin interfacecom.yahoo.io.WritableByteTransmitter- Overrides:
sendin classContentChannelOutputStream- Throws:
IOException
-
flush
Description copied from class:ContentChannelOutputStreamFlush the internal buffers, does not touch the ContentChannel.- Specified by:
flushin interfaceFlushable- Overrides:
flushin classContentChannelOutputStream- Throws:
IOException
-