public static boolean shouldRetry ( int rc ) { return ( rc == KeeperException . Code . CONNECTIONLOSS . intValue ( ) ) || ( rc == KeeperException . Code . OPERATIONTIMEOUT . intValue ( ) ) || ( rc == KeeperException . Code . SESSIONMOVED . intValue ( ) ) || ( rc == KeeperException . Code . SESSIONEXPIRED . intValue ( ) ) ; }
Utility - return true if the given Zookeeper result code is retry - able