/
AbstractHandler.java
45 lines (24 loc) · 1.03 KB
/
AbstractHandler.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package com.shinemo.mpush.api;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelPromise;
import java.net.SocketAddress;
public abstract class AbstractHandler {
public void channelActive(ChannelHandlerContext ctx) throws Exception{
}
public void channelInactive(ChannelHandlerContext ctx) throws Exception{
}
public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception{
}
public void channelReadComplete(ChannelHandlerContext ctx) throws Exception{
}
public void channelRegistered(ChannelHandlerContext ctx) throws Exception{
}
public void channelUnregistered(ChannelHandlerContext ctx) throws Exception{
}
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception{
}
public void connect(ChannelHandlerContext ctx, SocketAddress remoteAddress, SocketAddress localAddress, ChannelPromise promise) throws Exception{
}
public void disconnect(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception{
}
}