/** * @param pattern * @return A map of K key to ICacheElement<K, V> element, or an empty map if there is no * data in cache for any of these keys * @throws IOException */ @Override protected Map<K, ICacheElement<K, V>> processGetMatching( String pattern ) throws IOException { if ( this.lateralCacheAttributes.getPutOnlyMode() ) { return Collections.emptyMap(); } try { return lateralCacheService.getMatching( cacheName, pattern ); } catch ( IOException e ) { log.error( e ); handleException( e, "Failed to getMatching [" + pattern + "] from " + lateralCacheAttributes.getCacheName() + "@" + lateralCacheAttributes ); return Collections.emptyMap(); } }
/** * @param pattern * @return A map of K key to ICacheElement<K, V> element, or an empty map if there is no * data in cache for any of these keys * @throws IOException */ @Override protected Map<K, ICacheElement<K, V>> processGetMatching( String pattern ) throws IOException { if ( this.lateralCacheAttributes.getPutOnlyMode() ) { return Collections.emptyMap(); } try { return lateralCacheService.getMatching( cacheName, pattern ); } catch ( IOException e ) { log.error( e ); handleException( e, "Failed to getMatching [" + pattern + "] from " + lateralCacheAttributes.getCacheName() + "@" + lateralCacheAttributes ); return Collections.emptyMap(); } }
try Map<K, ICacheElement<K, V>> rawResults = getRemoteCacheService().getMatching( cacheName, pattern, getListenerId() );
try Map<K, ICacheElement<K, V>> rawResults = getRemoteCacheService().getMatching( cacheName, pattern, getListenerId() );
case GET_MATCHING: Map<Serializable, ICacheElement<Serializable, Serializable>> elementMapMatching = remoteCacheService.getMatching( request.getCacheName(), request.getPattern(), request.getRequesterId() ); if ( elementMapMatching != null )
Map<K, ICacheElement<K, V>> elementMapMatching = getRemoteCacheService().getMatching( request.getCacheName(), request.getPattern(), request.getRequesterId() );