Sleep(30); pool.setNagle(false); pool.initialize(); } catch (Exception ex) {// log.error("error:", ex); } } } catch (Exception ex) {// log.error("error:", ex); } if (mc == null) { mc = new MemCachedClient();// mc.setPoolName(sockPoolName); mc.setCompressEnable(false); mc.setCompressThreshold(0); } } protected void closePool() { if (mc != null) { try { } catch (Exception ex) {// log.error("error:", ex); } mc = null; } if (pool != null) { try { pool.shutDown(); } catch (Exception ex) {// log.error("error:", ex); } } } public String getSockPoolName() { return sockPoolName; } public String getServerlist() { return serverlist; } public String getSnaidPerfix() { return snaidPerfix; } public String getSnaidFlag() { return snaidFlag; } public void setSockPoolName(String sockPoolName) { this.sockPoolName = sockPoolName; } public void setServerlist(String serverlist) { this.serverlist = serverlist; } public void setSnaidPerfix(String snaidPerfix) { this.snaidPerfix = snaidPerfix; } public void setSnaidFlag(String snaidFlag) { this.snaidFlag = snaidFlag; } protected String generateSessionId() { if (this.getJvmRoute() != null) {