private TcpIpConnectionMonitor getConnectionMonitor(Address endpoint, boolean reset) {
   TcpIpConnectionMonitor monitor =
       ConcurrencyUtil.getOrPutIfAbsent(monitors, endpoint, monitorConstructor);
   if (reset) {
     monitor.reset();
   }
   return monitor;
 }
 ICacheRecordStore getOrCreateCache(String name) {
   return ConcurrencyUtil.getOrPutIfAbsent(caches, name, cacheConstructorFunction);
 }
Example #3
0
 public LocalMultiMapStatsImpl getLocalMultiMapStatsImpl(String name) {
   return ConcurrencyUtil.getOrPutIfAbsent(statsMap, name, localMultiMapStatsConstructorFunction);
 }
Example #4
0
 ClientEndpoint getEndpoint(Connection conn) {
   return ConcurrencyUtil.getOrPutIfAbsent(endpoints, conn, endpointConstructor);
 }
 public LockResourceImpl getLock(Data key) {
   return ConcurrencyUtil.getOrPutIfAbsent(locks, key, lockConstructor);
 }
 public CacheContext getOrCreateCacheContext(String name) {
   return ConcurrencyUtil.getOrPutIfAbsent(cacheContexts, name, cacheContexesConstructorFunction);
 }
 @Override
 public CacheStatisticsImpl createCacheStatIfAbsent(String name) {
   return ConcurrencyUtil.getOrPutIfAbsent(statistics, name, cacheStatisticsConstructorFunction);
 }
Example #8
0
 public NearCache getNearCache(String mapName) {
   return ConcurrencyUtil.getOrPutIfAbsent(nearCacheMap, mapName, nearCacheConstructor);
 }