Search in sources :

Example 1 with EzyConnectionType

use of com.tvd12.ezyfoxserver.constant.EzyConnectionType in project ezyfox-server by youngmonkeys.

the class EzyHandlerGroupManagerImpl method newHandlerGroup.

@SuppressWarnings("unchecked")
@Override
public <T extends EzyHandlerGroup> T newHandlerGroup(EzyChannel channel, EzyConnectionType type) {
    EzyHandlerGroup group = handlerGroupBuilderFactory.newBuilder(channel, type).build();
    groupsByConnection.put(channel.getConnection(), group);
    return (T) group;
}
Also used : EzyHandlerGroup(com.tvd12.ezyfoxserver.nio.handler.EzyHandlerGroup)

Aggregations

EzyHandlerGroup (com.tvd12.ezyfoxserver.nio.handler.EzyHandlerGroup)1