Skip to content

Commit

Permalink
3.8.0.v20220128-RELEASE
Browse files Browse the repository at this point in the history
3.8.0.v20220128-RELEASE
  • Loading branch information
tywo45 committed Jan 28, 2022
1 parent 5debd8b commit c4212f9
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
12 changes: 6 additions & 6 deletions src/core/src/main/java/org/tio/client/TioClientConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ recommend that a file or class name and description of purpose be included on
public class TioClientConfig extends TioConfig {
static Logger log = LoggerFactory.getLogger(TioClientConfig.class);

private TioClientHandler clientTioHandler = null;
private TioClientHandler tioClientHandler = null;

private TioClientListener tioClientListener = null;

Expand Down Expand Up @@ -302,10 +302,10 @@ public TioListener getTioListener() {
}

/**
* @return the clientTioHandler
* @return the tioClientHandler
*/
public TioClientHandler getTioClientHandler() {
return clientTioHandler;
return tioClientHandler;
}

/**
Expand All @@ -323,10 +323,10 @@ public ConnectionCompletionHandler getConnectionCompletionHandler() {
}

/**
* @param clientTioHandler the clientTioHandler to set
* @param tioClientHandler the tioClientHandler to set
*/
public void setTioClientHandler(TioClientHandler clientTioHandler) {
this.clientTioHandler = clientTioHandler;
public void setTioClientHandler(TioClientHandler tioClientHandler) {
this.tioClientHandler = tioClientHandler;
}

/**
Expand Down
36 changes: 18 additions & 18 deletions src/core/src/main/java/org/tio/server/TioServerConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ recommend that a file or class name and description of purpose be included on
public class TioServerConfig extends TioConfig {
static Logger log = LoggerFactory.getLogger(TioServerConfig.class);
private AcceptCompletionHandler acceptCompletionHandler = null;
private TioServerHandler serverTioHandler = null;
private TioServerHandler tioServerHandler = null;
private TioServerListener tioServerListener = null;
private Thread checkHeartbeatThread = null;
private boolean needCheckHeartbeat = true;
Expand All @@ -236,67 +236,67 @@ public class TioServerConfig extends TioConfig {

/**
*
* @param serverTioHandler
* @param tioServerHandler
* @param tioServerListener
* @author: tanyaowu
*/
public TioServerConfig(TioServerHandler serverTioHandler, TioServerListener tioServerListener) {
this(null, serverTioHandler, tioServerListener);
public TioServerConfig(TioServerHandler tioServerHandler, TioServerListener tioServerListener) {
this(null, tioServerHandler, tioServerListener);
}

/**
*
* @param name
* @param serverTioHandler
* @param tioServerHandler
* @param tioServerListener
* @author: tanyaowu
*/
public TioServerConfig(String name, TioServerHandler serverTioHandler, TioServerListener tioServerListener) {
this(name, serverTioHandler, tioServerListener, null, null);
public TioServerConfig(String name, TioServerHandler tioServerHandler, TioServerListener tioServerListener) {
this(name, tioServerHandler, tioServerListener, null, null);
}

/**
*
* @param serverTioHandler
* @param tioServerHandler
* @param tioServerListener
* @param tioExecutor
* @param groupExecutor
* @author: tanyaowu
*/
public TioServerConfig(TioServerHandler serverTioHandler, TioServerListener tioServerListener, SynThreadPoolExecutor tioExecutor, ThreadPoolExecutor groupExecutor) {
this(null, serverTioHandler, tioServerListener, tioExecutor, groupExecutor);
public TioServerConfig(TioServerHandler tioServerHandler, TioServerListener tioServerListener, SynThreadPoolExecutor tioExecutor, ThreadPoolExecutor groupExecutor) {
this(null, tioServerHandler, tioServerListener, tioExecutor, groupExecutor);
}

/**
*
* @param name
* @param serverTioHandler
* @param tioServerHandler
* @param tioServerListener
* @param tioExecutor
* @param groupExecutor
* @author: tanyaowu
*/
public TioServerConfig(String name, TioServerHandler serverTioHandler, TioServerListener tioServerListener, SynThreadPoolExecutor tioExecutor,
public TioServerConfig(String name, TioServerHandler tioServerHandler, TioServerListener tioServerListener, SynThreadPoolExecutor tioExecutor,
ThreadPoolExecutor groupExecutor) {
super(tioExecutor, groupExecutor);
this.ipBlacklist = new IpBlacklist(id, this);
init(name, serverTioHandler, tioServerListener, tioExecutor, groupExecutor);
init(name, tioServerHandler, tioServerListener, tioExecutor, groupExecutor);
}

/**
*
* @param name
* @param serverTioHandler
* @param tioServerHandler
* @param tioServerListener
* @param tioExecutor
* @param groupExecutor
* @author tanyaowu
*/
private void init(String name, TioServerHandler serverTioHandler, TioServerListener tioServerListener, SynThreadPoolExecutor tioExecutor, ThreadPoolExecutor groupExecutor) {
private void init(String name, TioServerHandler tioServerHandler, TioServerListener tioServerListener, SynThreadPoolExecutor tioExecutor, ThreadPoolExecutor groupExecutor) {
this.name = name;
this.groupStat = new ServerGroupStat();
this.acceptCompletionHandler = new AcceptCompletionHandler();
this.serverTioHandler = serverTioHandler;
this.tioServerHandler = tioServerHandler;
this.tioServerListener = tioServerListener;// == null ? new DefaultTioServerListener() : tioServerListener;
checkHeartbeatThread = new Thread(new Runnable() {
@Override
Expand Down Expand Up @@ -475,10 +475,10 @@ public TioListener getTioListener() {
}

/**
* @return the serverTioHandler
* @return the tioServerHandler
*/
public TioServerHandler getTioServerHandler() {
return serverTioHandler;
return tioServerHandler;
}

/**
Expand Down

0 comments on commit c4212f9

Please sign in to comment.