/** * Allows us to see if the facade is present and if it has the no wait. * <p> * @param cacheName - facades are for a region * @param noWait - is this no wait in the facade * @return do we contain the no wait. true if so */ public <K, V> boolean containsNoWait( String cacheName, LateralCacheNoWait<K, V> noWait ) { @SuppressWarnings("unchecked") // Need to cast because of common map for all facades LateralCacheNoWaitFacade<K, V> facade = (LateralCacheNoWaitFacade<K, V>)facades.get( noWait.getCacheName() ); if ( facade == null ) { return false; } return facade.containsNoWait( noWait ); }
/** * Allows us to see if the facade is present and if it has the no wait. * <p> * @param cacheName - facades are for a region * @param noWait - is this no wait in the facade * @return do we contain the no wait. true if so */ public <K, V> boolean containsNoWait( String cacheName, LateralCacheNoWait<K, V> noWait ) { @SuppressWarnings("unchecked") // Need to cast because of common map for all facades LateralCacheNoWaitFacade<K, V> facade = (LateralCacheNoWaitFacade<K, V>)facades.get( noWait.getCacheName() ); if ( facade == null ) { return false; } return facade.containsNoWait( noWait ); }
LateralCacheNoWaitFacade<K, V> facade = (LateralCacheNoWaitFacade<K, V>)facades.get( noWait.getCacheName() ); if ( log.isDebugEnabled() ) log.debug( "removeNoWait > Got facade for " + noWait.getCacheName() + " = " + facade ); if ( !knownDifferentlyConfiguredRegions.contains( noWait.getCacheName() ) ) + noWait.getCacheName() + "] is not yet used on this side. " ); knownDifferentlyConfiguredRegions.add( noWait.getCacheName() );
LateralCacheNoWaitFacade<K, V> facade = (LateralCacheNoWaitFacade<K, V>)facades.get( noWait.getCacheName() ); if ( log.isDebugEnabled() ) log.debug( "removeNoWait > Got facade for " + noWait.getCacheName() + " = " + facade ); if ( !knownDifferentlyConfiguredRegions.contains( noWait.getCacheName() ) ) + noWait.getCacheName() + "] is not yet used on this side. " ); knownDifferentlyConfiguredRegions.add( noWait.getCacheName() );
LateralCacheNoWaitFacade<K, V> facade = (LateralCacheNoWaitFacade<K, V>)facades.get( noWait.getCacheName() ); if ( log.isDebugEnabled() ) log.debug( "addNoWait > Got facade for " + noWait.getCacheName() + " = " + facade ); if ( !knownDifferentlyConfiguredRegions.contains( noWait.getCacheName() ) ) + noWait.getCacheName() + "] is not yet used on this side. " ); knownDifferentlyConfiguredRegions.add( noWait.getCacheName() );
LateralCacheNoWaitFacade<K, V> facade = (LateralCacheNoWaitFacade<K, V>)facades.get( noWait.getCacheName() ); if ( log.isDebugEnabled() ) log.debug( "addNoWait > Got facade for " + noWait.getCacheName() + " = " + facade ); if ( !knownDifferentlyConfiguredRegions.contains( noWait.getCacheName() ) ) + noWait.getCacheName() + "] is not yet used on this side. " ); knownDifferentlyConfiguredRegions.add( noWait.getCacheName() );
/** * Add a cache to be monitored * * @param cache the cache */ public void addCache(LateralCacheNoWait<?, ?> cache) { this.caches.put(cache.getCacheName(), cache); // if not yet started, go ahead if (this.getState() == Thread.State.NEW) { this.start(); } }
/** * Add a cache to be monitored * * @param cache the cache */ public void addCache(LateralCacheNoWait<?, ?> cache) { this.caches.put(cache.getCacheName(), cache); // if not yet started, go ahead if (this.getState() == Thread.State.NEW) { this.start(); } }