All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.beifengtz.jvmm.server.handler.ServerHandlerProvider Maven / Gradle / Ivy

package org.beifengtz.jvmm.server.handler;

import io.netty.channel.ChannelHandler;
import io.netty.util.concurrent.EventExecutorGroup;
import org.beifengtz.jvmm.convey.handler.HandlerProvider;

/**
 * 

* Description: TODO *

*

* Created in 18:16 2021/5/17 * * @author beifengtz */ public class ServerHandlerProvider implements HandlerProvider { private int idleTime; private String name; private EventExecutorGroup group; private ServerHandlerProvider() { } public ServerHandlerProvider(int idleTime, EventExecutorGroup group) { this(idleTime, "jvmmServerHandler", group); } public ServerHandlerProvider(int idleTime, String name, EventExecutorGroup group) { this.idleTime = idleTime; this.name = name; this.group = group; } @Override public ChannelHandler getHandler() { return new ServerHandler(); } @Override public int getReaderIdle() { return idleTime; } @Override public String getName() { return name; } @Override public EventExecutorGroup getGroup() { return group; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy