private TcpIpConnectionMonitor getConnectionMonitor(Address endpoint, boolean reset) {
   TcpIpConnectionMonitor monitor =
       ConcurrencyUtil.getOrPutIfAbsent(monitors, endpoint, monitorConstructor);
   if (reset) {
     monitor.reset();
   }
   return monitor;
 }
Esempio n. 2
0
 ICacheRecordStore getOrCreateCache(String name) {
   return ConcurrencyUtil.getOrPutIfAbsent(caches, name, cacheConstructorFunction);
 }
Esempio n. 3
0
 public LocalMultiMapStatsImpl getLocalMultiMapStatsImpl(String name) {
   return ConcurrencyUtil.getOrPutIfAbsent(statsMap, name, localMultiMapStatsConstructorFunction);
 }
Esempio n. 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);
 }
Esempio n. 8
0
 public NearCache getNearCache(String mapName) {
   return ConcurrencyUtil.getOrPutIfAbsent(nearCacheMap, mapName, nearCacheConstructor);
 }
Esempio n. 9
0
 public MapContainer getMapContainer(String mapName) {
   return ConcurrencyUtil.getOrPutSynchronized(
       mapContainers, mapName, mapContainers, mapConstructor);
 }