@Test public void testSetMaxPoolsize() { ExecutorConfig executorConfig = new ExecutorConfig().setMaxPoolSize(1234); assertTrue(executorConfig.getMaxPoolSize() == 1234); }
public ExecutorConfig setMaxPoolSize(final int maxPoolSize) { if (maxPoolSize <= 0) { throw new IllegalArgumentException("maxPoolSize must be positive"); } this.maxPoolSize = maxPoolSize; return this; }
ExecutorConfig implements DataSerializable { public ExecutorConfig setMaxPoolSize(final int maxPoolSize) { if (maxPoolSize <= 0) { throw new IllegalArgumentException("maxPoolSize must be positive"); } this.maxPoolSize = maxPoolSize; return this; } }
ExecutorConfig implements DataSerializable { public ExecutorConfig setMaxPoolSize(final int maxPoolSize) { if (maxPoolSize <= 0) { throw new IllegalArgumentException("maxPoolSize must be positive"); } this.maxPoolSize = maxPoolSize; return this; } ExecutorConfig();  ExecutorConfig(String name);  ExecutorConfig(String name, int corePoolSize, int maxPoolSize, int keepAliveSeconds); }
ExecutorConfig implements DataSerializable { public ExecutorConfig setMaxPoolSize(final int maxPoolSize) { if (maxPoolSize <= 0) { throw new IllegalArgumentException("maxPoolSize must be positive"); } this.maxPoolSize = maxPoolSize; return this; } ExecutorConfig();  ExecutorConfig(String name);  ExecutorConfig(String name, int corePoolSize, int maxPoolSize, int keepAliveSeconds); String getName(); ExecutorConfig setName(String name); int getCorePoolSize(); ExecutorConfig setCorePoolSize(final int corePoolSize); int getMaxPoolSize(); ExecutorConfig setMaxPoolSize(final int maxPoolSize); int getKeepAliveSeconds(); ExecutorConfig setKeepAliveSeconds(final int keepAliveSeconds); void writeData(DataOutput out); void readData(DataInput in); @Override String toString(); }
ExecutorConfig implements DataSerializable { public ExecutorConfig setMaxPoolSize(final int maxPoolSize) { if (maxPoolSize <= 0) { throw new IllegalArgumentException("maxPoolSize must be positive"); } this.maxPoolSize = maxPoolSize; return this; } ExecutorConfig();  ExecutorConfig(String name);  ExecutorConfig(String name, int corePoolSize, int maxPoolSize, int keepAliveSeconds); String getName(); ExecutorConfig setName(String name); int getCorePoolSize(); ExecutorConfig setCorePoolSize(final int corePoolSize); int getMaxPoolSize(); ExecutorConfig setMaxPoolSize(final int maxPoolSize); int getKeepAliveSeconds(); ExecutorConfig setKeepAliveSeconds(final int keepAliveSeconds); void writeData(DataOutput out); void readData(DataInput in); @Override String toString(); final static int DEFAULT_CORE_POOL_SIZE; final static int DEFAULT_MAX_POOL_SIZE; final static int DEFAULT_KEEP_ALIVE_SECONDS; }