public interface ChannelHandler
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onClosed(String reason) |
void |
onConnect(ChannelContext context) |
void |
onError(ChannelContext context) |
void |
onMessage(ChannelContext context) |
void onConnect(ChannelContext context) throws Exception
Exceptionvoid onMessage(ChannelContext context) throws Exception
Exceptionvoid onError(ChannelContext context) throws Exception
Exceptionvoid onClosed(String reason)
Copyright © 2020. All rights reserved.