public ConverterServerBuilder workerPool ( int corePoolSize , int maximumPoolSize , long keepAliveTime , TimeUnit unit ) { assertNumericArgument ( corePoolSize , true ) ; assertNumericArgument ( maximumPoolSize , true ) ; assertNumericArgument ( corePoolSize + maximumPoolSize , false ) ; assertNumericArgument ( keepAliveTime , true ) ; this . corePoolSize = corePoolSize ; this . maximumPoolSize = maximumPoolSize ; this . keepAliveTime = unit . toMillis ( keepAliveTime ) ; return this ; }
Configures a worker pool for the converter .