public class EmbeddedWebSocketClientChannel extends Object implements ClientChannel
ChannelSender.SendHandler| Modifier and Type | Field and Description |
|---|---|
protected Exception |
error |
protected WebSocket |
socket |
| Constructor and Description |
|---|
EmbeddedWebSocketClientChannel() |
| Modifier and Type | Method and Description |
|---|---|
void |
close(String reason) |
ChannelHandler |
getChannelHandler() |
Object |
getContext(Object key) |
SocketAddress |
getLocalAddress() |
SocketAddress |
getRemoteAddress() |
URI |
getUri() |
boolean |
isConnected() |
void |
send(byte[] data,
int offset,
int length) |
void |
send(ByteBuffer dataBuffer,
ChannelSender.SendHandler sendHandler) |
void |
setChannelHandler(ChannelHandler handler) |
void |
setContext(Object key,
Object value) |
void |
setHeartbeatTimer(ResetableTimer timer) |
void |
setUri(URI uri) |
void |
stopHeartbeat() |
public SocketAddress getLocalAddress()
getLocalAddress in interface ChannelSenderpublic SocketAddress getRemoteAddress()
getRemoteAddress in interface ChannelSenderpublic Object getContext(Object key)
getContext in interface ChannelSenderpublic void setContext(Object key, Object value)
setContext in interface ChannelSenderpublic ChannelHandler getChannelHandler()
getChannelHandler in interface ClientChannelpublic void setUri(URI uri)
setUri in interface ClientChannelpublic URI getUri()
getUri in interface ClientChannelpublic void setChannelHandler(ChannelHandler handler)
setChannelHandler in interface ClientChannelpublic boolean isConnected()
isConnected in interface ClientChannelpublic void close(String reason)
close in interface ChannelSenderpublic void setHeartbeatTimer(ResetableTimer timer)
setHeartbeatTimer in interface ClientChannelpublic void send(ByteBuffer dataBuffer, ChannelSender.SendHandler sendHandler) throws ChannelException
send in interface ChannelSenderChannelExceptionpublic void send(byte[] data,
int offset,
int length)
throws ChannelException
send in interface ChannelSenderChannelExceptionpublic void stopHeartbeat()
Copyright © 2021. All rights reserved.