Class SimpleClientHandlerFactory
- java.lang.Object
-
- be.yildizgames.module.network.netty.client.SimpleClientHandlerFactory
-
- All Implemented Interfaces:
HandlerFactory
public class SimpleClientHandlerFactory extends Object implements HandlerFactory
- Author:
- Grégory Van den Borre
-
-
Constructor Summary
Constructors Constructor Description SimpleClientHandlerFactory(be.yildizgames.module.network.client.ClientCallBack cb, be.yildizgames.module.network.DecoderEncoder codec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.netty.channel.ChannelHandlercreate()be.yildizgames.module.network.DecoderEncodergetCodec()booleanisServer()
-
-
-
Method Detail
-
create
public io.netty.channel.ChannelHandler create()
- Specified by:
createin interfaceHandlerFactory- Returns:
- A new ChannelHandler.
-
getCodec
public be.yildizgames.module.network.DecoderEncoder getCodec()
- Specified by:
getCodecin interfaceHandlerFactory- Returns:
- The codec.
-
isServer
public boolean isServer()
- Specified by:
isServerin interfaceHandlerFactory
-
-