public ConcurrentCoapResource(String name){
  super(name);
  this.threads=getAvailableProcessors();
  setExecutor(Executors.newFixedThreadPool(threads,new Utils.NamedThreadFactory("ConcurrentCoapResource-" + name + '#')));
}

public ConcurrentCoapResource ( String name ) { super ( name ) ; this . threads = getAvailableProcessors ( ) ; setExecutor ( Executors . newFixedThreadPool ( threads , new Utils . NamedThreadFactory ( "ConcurrentCoapResource-" + name + '#' ) ) ) ; }
constructs a new resource that uses an executor with as many threads as there are processors available .
