diff --git a/src/main/java/com/loafle/commons/server/Server.java b/src/main/java/com/loafle/commons/server/Server.java index ccc6b3c..3d4a529 100644 --- a/src/main/java/com/loafle/commons/server/Server.java +++ b/src/main/java/com/loafle/commons/server/Server.java @@ -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 { private final ChannelOption option;