BlockingQueue < Runnable > function ( int arg0 ) { if ( arg0 <= 0 ) { return new SynchronousQueue < Runnable > ( ) ; } else { return new LinkedBlockingQueue < Runnable > ( arg0 ) ; } }
factory method to provide instance of blockingqueue used for each threadpoolexecutor as constructed in #getthreadpool . note : the maxqueuesize value is provided so any type of queue can be used but typically an implementation such as synchronousqueue without a queue just a handoff is preferred asqueueing is an anti-pattern to be purposefully avoided for latency tolerance reasons . default implementation implementation returns synchronousqueue when maxqueuesize 0 . concode_field_sep PlaceHolder placeHolder concode_field_sep ThreadPoolExecutor getThreadPool concode_elem_sep HystrixRequestVariable<T> getRequestVariable concode_elem_sep Callable<T> wrapCallable