public final static void setMaxSelectors(int size) throws IOException {
    synchronized (selectors) {
      if (size < maxSelectors) {
        reduce(size);
      } else if (size > maxSelectors) {
        grow(size);
      }

      maxSelectors = size;
    }
  }
public final static void setMaxSelectors ( int size ) throws IOException { synchronized ( selectors ) { if ( size < maxSelectors ) { reduce ( size ) ; } else if ( size > maxSelectors ) { grow ( size ) ; } maxSelectors = size ; } }
Set max selector pool size.

@param size max pool size