Package io.undertow.io
Class BlockingSenderImpl
java.lang.Object
io.undertow.io.BlockingSenderImpl
- All Implemented Interfaces:
Sender
A sender that uses an output stream.
- Author:
- Stuart Douglas
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes this sender asynchronouslyvoid
close
(IoCallback callback) Closes this sender asynchronously.void
Write the given String using async IO, and ends the exchange when donevoid
send
(String data, IoCallback callback) Write the given String using async IO, and calls the given callback on completion or error.void
Write the given String using async IO, and ends the exchange when donevoid
send
(String data, Charset charset, IoCallback callback) Write the given String using async IO, and calls the given callback on completion or error.void
send
(ByteBuffer buffer) Write the given buffer using async IO, and ends the exchange when donevoid
send
(ByteBuffer[] buffer) Write the given buffers using async IO, and ends the exchange when donevoid
send
(ByteBuffer[] buffer, IoCallback callback) Write the given buffers using async IO, and calls the given callback on completion or error.void
send
(ByteBuffer buffer, IoCallback callback) Write the given buffer using async IO, and calls the given callback on completion or error.void
transferFrom
(FileChannel source, IoCallback callback) Transfers all content from the specified file
-
Constructor Details
-
BlockingSenderImpl
-
-
Method Details
-
send
Description copied from interface:Sender
Write the given buffer using async IO, and calls the given callback on completion or error. -
send
Description copied from interface:Sender
Write the given buffers using async IO, and calls the given callback on completion or error. -
send
Description copied from interface:Sender
Write the given buffer using async IO, and ends the exchange when done -
send
Description copied from interface:Sender
Write the given buffers using async IO, and ends the exchange when done -
send
Description copied from interface:Sender
Write the given String using async IO, and calls the given callback on completion or error.The CharSequence is encoded to UTF8
-
send
Description copied from interface:Sender
Write the given String using async IO, and calls the given callback on completion or error. -
send
Description copied from interface:Sender
Write the given String using async IO, and ends the exchange when doneThe CharSequence is encoded to UTF8
-
send
Description copied from interface:Sender
Write the given String using async IO, and ends the exchange when done -
transferFrom
Description copied from interface:Sender
Transfers all content from the specified file- Specified by:
transferFrom
in interfaceSender
- Parameters:
source
- the file channel to transfercallback
- The callback
-
close
Description copied from interface:Sender
Closes this sender asynchronously. The given callback is notified on completion -
close
public void close()Description copied from interface:Sender
Closes this sender asynchronously
-