This commit is contained in:
crusader 2018-04-24 12:01:32 +09:00
parent 90dda2f964
commit d106b06371

View File

@ -82,10 +82,18 @@ public abstract class Server {
return serverBootstrap.bind(address).sync();
}
protected abstract void init() throws Exception;
protected abstract void onStart() throws Exception;
protected abstract void onStop() throws Exception;
protected abstract void destroy() throws Exception;
protected void init() throws Exception {
// no op
}
protected void onStart() throws Exception {
// no op
}
protected void onStop() throws Exception {
// no op
}
protected void destroy() throws Exception {
// no op
}
public static class ChannelOptionItem<T> {
private final ChannelOption<T> option;