private TcpIpConnectionMonitor getConnectionMonitor(Address endpoint, boolean reset) {
   TcpIpConnectionMonitor monitor =
       ConcurrencyUtil.getOrPutIfAbsent(monitors, endpoint, monitorConstructor);
   if (reset) {
     monitor.reset();
   }
   return monitor;
 }
Exemplo n.º 2
0
 ICacheRecordStore getOrCreateCache(String name) {
   return ConcurrencyUtil.getOrPutIfAbsent(caches, name, cacheConstructorFunction);
 }
Exemplo n.º 3
0
 public LocalMultiMapStatsImpl getLocalMultiMapStatsImpl(String name) {
   return ConcurrencyUtil.getOrPutIfAbsent(statsMap, name, localMultiMapStatsConstructorFunction);
 }
Exemplo n.º 4
0
 ClientEndpoint getEndpoint(Connection conn) {
   return ConcurrencyUtil.getOrPutIfAbsent(endpoints, conn, endpointConstructor);
 }
Exemplo n.º 5
0
 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);
 }
Exemplo n.º 8
0
 public NearCache getNearCache(String mapName) {
   return ConcurrencyUtil.getOrPutIfAbsent(nearCacheMap, mapName, nearCacheConstructor);
 }