Exception changes..

1.x
Ranjith Manickam -T (ranmanic - COGNIZANT TECHNOLOGY SOLUTIONS INDIA PVT LTD at Cisco) 8 years ago
parent 979916068e
commit 600eede027

@ -56,6 +56,9 @@ public class RedisCacheUtil implements IRequestSessionCacheUtils
sucess = true;
} catch (JedisConnectionException e) {
log.error("Jedis connection failed, retrying..." + tries);
if (tries == numRetries) {
throw e;
}
}
} while (!sucess && tries <= numRetries);
}
@ -76,6 +79,9 @@ public class RedisCacheUtil implements IRequestSessionCacheUtils
sucess = true;
} catch (JedisConnectionException e) {
log.error("Jedis connection failed, retrying..." + tries);
if (tries == numRetries) {
throw e;
}
}
} while (!sucess && tries <= numRetries);
return retVal;
@ -94,6 +100,9 @@ public class RedisCacheUtil implements IRequestSessionCacheUtils
sucess = true;
} catch (JedisConnectionException e) {
log.error("Jedis connection failed, retrying..." + tries);
if (tries == numRetries) {
throw e;
}
}
} while (!sucess && tries <= numRetries);
}
@ -114,6 +123,9 @@ public class RedisCacheUtil implements IRequestSessionCacheUtils
sucess = true;
} catch (JedisConnectionException e) {
log.error("Jedis connection failed, retrying..." + tries);
if (tries == numRetries) {
throw e;
}
}
} while (!sucess && tries <= numRetries);
return array;
@ -134,6 +146,9 @@ public class RedisCacheUtil implements IRequestSessionCacheUtils
sucess = true;
} catch (JedisConnectionException e) {
log.error("Jedis connection failed, retrying..." + tries);
if (tries == numRetries) {
throw e;
}
}
} while (!sucess && tries <= numRetries);
}

@ -54,6 +54,9 @@ public class RedisClusterCacheUtil implements IRequestSessionCacheUtils
sucess = true;
} catch (JedisClusterMaxRedirectionsException | JedisConnectionException e) {
log.error("Jedis connection failed, retrying..." + tries);
if (tries == numRetries) {
throw e;
}
waitforFailover();
}
} while (!sucess && tries <= numRetries);
@ -73,6 +76,9 @@ public class RedisClusterCacheUtil implements IRequestSessionCacheUtils
sucess = true;
} catch (JedisClusterMaxRedirectionsException | JedisConnectionException e) {
log.error("Jedis connection failed, retrying..." + tries);
if (tries == numRetries) {
throw e;
}
waitforFailover();
}
} while (!sucess && tries <= numRetries);
@ -90,6 +96,9 @@ public class RedisClusterCacheUtil implements IRequestSessionCacheUtils
sucess = true;
} catch (JedisClusterMaxRedirectionsException | JedisConnectionException e) {
log.error("Jedis connection failed, retrying..." + tries);
if (tries == numRetries) {
throw e;
}
waitforFailover();
}
} while (!sucess && tries <= numRetries);
@ -109,6 +118,9 @@ public class RedisClusterCacheUtil implements IRequestSessionCacheUtils
sucess = true;
} catch (JedisClusterMaxRedirectionsException | JedisConnectionException e) {
log.error("Jedis connection failed, retrying..." + tries);
if (tries == numRetries) {
throw e;
}
waitforFailover();
}
} while (!sucess && tries <= numRetries);
@ -128,6 +140,9 @@ public class RedisClusterCacheUtil implements IRequestSessionCacheUtils
sucess = true;
} catch (JedisClusterMaxRedirectionsException | JedisConnectionException e) {
log.error("Jedis connection failed, retrying..." + tries);
if (tries == numRetries) {
throw e;
}
waitforFailover();
}
} while (!sucess && tries <= numRetries);

Loading…
Cancel
Save