if(concurrencyLevel>11||concurrencyLevel<0){
throw new IllegalArgumentException("ConcurrencyLevel must be between 0 and 11 inclusive!");
}
this.serializer = serializer;
this.bufferStore = byteBufferStore;
this.readWriteLock = new StripedReadWriteLock(concurrencyLevel);
ScheduledExecutorService cleanerService = Executors.newSingleThreadScheduledExecutor(new ThreadFactory() {
public Thread newThread(Runnable runnable) {
return new Thread(runnable, "imcache:bufferCleaner(name="+getName()+",thread="+ NO_OF_CLEANERS.incrementAndGet() + ")");
}
});