@Override public QueryResultsRegion buildQueryResultsRegion( String regionName, SessionFactoryImplementor sessionFactory) { throw new NoCacheRegionFactoryAvailableException(); }
@Override public Object get(SessionImplementor session, Object key) throws CacheException { try { return mapCache.get(key); } catch (Exception e) { throw new CacheException(e); } }
@Override public void put(Object key, Object value) throws CacheException { try { mapCache.fastPut(key, value, ttl, TimeUnit.MILLISECONDS, maxIdle, TimeUnit.MILLISECONDS); } catch (Exception e) { throw new CacheException(e); } }
@Override public DomainDataRegion buildDomainDataRegion( DomainDataRegionConfig regionConfig, DomainDataRegionBuildingContext buildingContext) { throw new NoCacheRegionFactoryAvailableException(); }
@Override public boolean contains(Object key) { try { return mapCache.containsKey(key); } catch (Exception e) { throw new CacheException(e); } }
@Override public TimestampsRegion buildTimestampsRegion( String regionName, SessionFactoryImplementor sessionFactory) { throw new NoCacheRegionFactoryAvailableException(); } }
@Override public void evict(Object key) throws CacheException { try { mapCache.fastRemove(key); } catch (Exception e) { throw new CacheException(e); } }
@Override public void evictAll() throws CacheException { try { mapCache.clear(); } catch (Exception e) { throw new CacheException(e); } }
@Override public void destroy() throws CacheException { try { mapCache.destroy(); } catch (Exception e) { throw new CacheException(e); } }
@Override public void put(SharedSessionContractImplementor session, Object key, Object value) throws CacheException { try { mapCache.fastPut(key, value, ttl, TimeUnit.MILLISECONDS, maxIdle, TimeUnit.MILLISECONDS); } catch (Exception e) { throw new CacheException(e); } }
@Override public Object get(SharedSessionContractImplementor session, Object key) throws CacheException { try { return mapCache.get(key); } catch (Exception e) { throw new CacheException(e); } }
@Override public void evict(Object key) throws CacheException { try { mapCache.fastRemove(key); } catch (Exception e) { throw new CacheException(e); } }
@Override public void destroy() throws CacheException { try { mapCache.destroy(); } catch (Exception e) { throw new CacheException(e); } }
@Override public boolean contains(Object key) { try { return mapCache.containsKey(key); } catch (Exception e) { throw new CacheException(e); } }
@Override public Object get(Object key) throws CacheException { try { return mapCache.get(key); } catch (Exception e) { throw new CacheException(e); } }
@Override public void evictAll() throws CacheException { try { mapCache.clear(); } catch (Exception e) { throw new CacheException(e); } }
@Override public void destroy() throws CacheException { try { mapCache.destroy(); } catch (Exception e) { throw new CacheException(e); } }
@Override public void put(SessionImplementor session, Object key, Object value) throws CacheException { try { mapCache.fastPut(key, value, ttl, TimeUnit.MILLISECONDS, maxIdle, TimeUnit.MILLISECONDS); } catch (Exception e) { throw new CacheException(e); } }
@Override public boolean contains(Object key) { try { return mapCache.containsKey(key); } catch (Exception e) { throw new CacheException(e); } }
@Override public void evict(Object key) throws CacheException { try { mapCache.fastRemove(key); } catch (Exception e) { throw new CacheException(e); } }