Skip to content

Commit

Permalink
code format
Browse files Browse the repository at this point in the history
  • Loading branch information
tywo45 committed Jul 30, 2019
1 parent 00aed47 commit cc267b0
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions src/utils/src/main/java/org/tio/utils/Threads.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,15 @@
* 2017年7月7日 上午11:12:03
*/
public class Threads {

public static int AVAILABLE_PROCESSORS = Runtime.getRuntime().availableProcessors();

public static int CORE_POOL_SIZE = AVAILABLE_PROCESSORS * 1;

public static final int MAX_POOL_SIZE_FOR_TIO = Math.max(CORE_POOL_SIZE * 3, 64);

public static final int MAX_POOL_SIZE_FOR_GROUP = Math.max(CORE_POOL_SIZE * 16, 256);

public static final long KEEP_ALIVE_TIME = 0L;//360000L;

public static final int AVAILABLE_PROCESSORS = Runtime.getRuntime().availableProcessors();
public static final int CORE_POOL_SIZE = AVAILABLE_PROCESSORS * 1;
public static final int MAX_POOL_SIZE_FOR_TIO = Math.max(CORE_POOL_SIZE * 3, 64);
public static final int MAX_POOL_SIZE_FOR_GROUP = Math.max(CORE_POOL_SIZE * 16, 256);
public static final long KEEP_ALIVE_TIME = 0L; //360000L;
@SuppressWarnings("unused")
private static final int QUEUE_CAPACITY = 1000000;

private static ThreadPoolExecutor groupExecutor = null;

private static SynThreadPoolExecutor tioExecutor = null;
private static final int QUEUE_CAPACITY = 1000000;
private static ThreadPoolExecutor groupExecutor = null;
private static SynThreadPoolExecutor tioExecutor = null;

/**
*
Expand Down

0 comments on commit cc267b0

Please sign in to comment.