Constructor and Description |
---|
ResponseCachingSender(Sender delegate,
DirectBufferCache.CacheEntry cacheEntry,
long length) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this sender asynchronously
|
void |
close(IoCallback callback)
Closes this sender asynchronously.
|
void |
send(ByteBuffer src)
Write the given buffer using async IO, and ends the exchange when done
|
void |
send(ByteBuffer[] srcs)
Write the given buffers using async IO, and ends the exchange when done
|
void |
send(ByteBuffer[] srcs,
IoCallback callback)
Write the given buffers using async IO, and calls the given callback on completion or error.
|
void |
send(ByteBuffer src,
IoCallback callback)
Write the given buffer using async IO, and calls the given callback on completion or error.
|
void |
send(String data)
Write the given String using async IO, and ends the exchange when done
The CharSequence is encoded to UTF8
|
void |
send(String data,
Charset charset)
Write the given String using async IO, and ends the exchange when done
|
void |
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(String data,
IoCallback callback)
Write the given String using async IO, and calls the given callback on completion or error.
|
void |
transferFrom(FileChannel channel,
IoCallback callback)
Transfers all content from the specified file
|
public ResponseCachingSender(Sender delegate, DirectBufferCache.CacheEntry cacheEntry, long length)
public void send(ByteBuffer src, IoCallback callback)
Sender
public void send(ByteBuffer[] srcs, IoCallback callback)
Sender
public void send(ByteBuffer src)
Sender
public void send(ByteBuffer[] srcs)
Sender
public void send(String data, IoCallback callback)
Sender
public void send(String data, Charset charset, IoCallback callback)
Sender
public void send(String data)
Sender
public void send(String data, Charset charset)
Sender
public void transferFrom(FileChannel channel, IoCallback callback)
Sender
transferFrom
in interface Sender
channel
- the file channel to transfercallback
- The callbackpublic void close(IoCallback callback)
Sender
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.