public MultiwayPoolBuilder<K,R> expireAfterAccess(long duration,TimeUnit unit){
  checkState(expireAfterAccessNanos == UNSET_INT,"expireAfterAccess was already set to %s ns",expireAfterAccessNanos);
  checkArgument(duration >= 0,"duration cannot be negative: %s %s",duration,unit);
  expireAfterAccessNanos=unit.toNanos(duration);
  return this;
}

public MultiwayPoolBuilder < K , R > expireAfterAccess ( long duration , TimeUnit unit ) { checkState ( expireAfterAccessNanos == UNSET_INT , "expireAfterAccess was already set to %s ns" , expireAfterAccessNanos ) ; checkArgument ( duration >= 0 , "duration cannot be negative: %s %s" , duration , unit ) ; expireAfterAccessNanos = unit . toNanos ( duration ) ; return this ; }
specifies that each entry should be automatically removed from the pool once a fixed duration has elapsed after the resource ' s creation or its last access . access time is reset when the resource is borrowed or released . a resource is considered eligible for eviction when it is idle in the pool , e . g . it is not being used .
