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