public interface ChannelSender
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ChannelSender.SendHandler |
| Modifier and Type | Method and Description |
|---|---|
void |
close(String reason) |
Object |
getContext(Object key) |
SocketAddress |
getLocalAddress() |
SocketAddress |
getRemoteAddress() |
void |
send(byte[] data,
int offset,
int length) |
void |
send(ByteBuffer dataBuffer,
ChannelSender.SendHandler sendHandler) |
void |
setContext(Object key,
Object value) |
void send(byte[] data,
int offset,
int length)
throws ChannelException
ChannelExceptionvoid send(ByteBuffer dataBuffer, ChannelSender.SendHandler sendHandler) throws ChannelException
ChannelExceptionvoid close(String reason)
SocketAddress getLocalAddress()
SocketAddress getRemoteAddress()
Copyright © 2021. All rights reserved.