1 package com.atlassian.event.internal;
2
3 import com.atlassian.event.config.EventThreadPoolConfiguration;
4
5 import java.util.concurrent.TimeUnit;
6
7 public class EventThreadPoolConfigurationImpl implements EventThreadPoolConfiguration {
8 private static final int CORE_POOL_SIZE = 16;
9 private static final int MAXIMUM_POOL_SIZE = 64;
10 private static final long KEEP_ALIVE_TIME = 60L;
11
12 public int getCorePoolSize() {
13 return CORE_POOL_SIZE;
14 }
15
16 public int getMaximumPoolSize() {
17 return MAXIMUM_POOL_SIZE;
18 }
19
20 public long getKeepAliveTime() {
21 return KEEP_ALIVE_TIME;
22 }
23
24 public TimeUnit getTimeUnit() {
25 return TimeUnit.SECONDS;
26 }
27 }