@Override public void destroy() { super.destroy(); try { memcachedClient.shutdown(); } catch (Throwable e) { logger.warn(e.getMessage(), e); } } };
@Override public void destroy() { super.destroy(); try { memcachedClient.shutdown(); } catch (Throwable e) { logger.warn(e.getMessage(), e); } } };
public void shutdown() throws IOException { if (this.memcachedClient != null) { this.memcachedClient.shutdown(); } }
public void shutdown() throws IOException { if (this.memcachedClient != null) { this.memcachedClient.shutdown(); } }
@Override public void shutdown() { try { memcachedClient.shutdown(); } catch (IOException e) { LOGGER.error("An error occurred when closing memcache", e); } }
@Override public void stop() { try { this.regions().clear(); this.client.shutdown(); } catch (IOException e) { log.error("Failed to disconnect to memcached", e); } } }
@Override protected void doStop() throws Exception { super.doStop(); if (_client != null) { _client.shutdown(); _client = null; } }
public boolean shutdown() throws KeyValueStoreClientException { if (_client != null) { try { _client.shutdown(); } catch (IOException error) { throw(new KeyValueStoreClientException(error)); } finally { _client = null; } } return true; }
@Override public void shutdown() { if (memcached == null) { throw new IllegalStateException("Memcached client instance has not been initialized yet."); } try { if (!memcached.isShutdown()) { memcached.shutdown(); } } catch (IOException e) { String message = "Failed to shutdown memcached client because " + e.getMessage(); log.info(message); if (log.isDebugEnabled()) { log.debug(message, e); } } }
@Override public void destroy() { super.destroy(); try { memcachedClient.shutdown(); } catch (Throwable e) { logger.warn(e.getMessage(), e); } } };
@Override public void destroy() { super.destroy(); try { memcachedClient.shutdown(); } catch (Throwable e) { logger.warn(e.getMessage(), e); } } };
@Override public void destroy() { super.destroy(); try { memcachedClient.shutdown(); } catch (Throwable e) { logger.warn(e.getMessage(), e); } } };
public void destroy() { super.destroy(); try { memcachedClient.shutdown(); } catch (Throwable e) { logger.warn(e.getMessage(), e); } } };
public void destroy() { super.destroy(); try { memcachedClient.shutdown(); } catch (Throwable e) { logger.warn(e.getMessage(), e); } } };
public void close() { try { client.flushAll(); client.shutdown(); } catch (Exception e) { NucleusLogger.CACHE.error("Exception caught shutting down cache", e); } }
public void close() { if (clearAtClose) { try { client.flushAll(); } catch (Exception e) { NucleusLogger.CACHE.error("Exception caught flushing cache", e); } } try { client.shutdown(); } catch (Exception e) { NucleusLogger.CACHE.error("Exception caught shutting down cache", e); } }