Package me.ahoo.cosid.store.redis
Class RedisStoreException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
me.ahoo.cosid.CosIdException
me.ahoo.cosid.store.redis.RedisStoreException
- All Implemented Interfaces:
Serializable
public class RedisStoreException
extends me.ahoo.cosid.CosIdException
A Redis store operation failed: Redis returned an error, did not answer within the store timeout, or the replicas
did not acknowledge the write (
WAIT, 06-stores.md §2.2). The outcome of the write is unknown: the caller
must not use a range or ceiling it did not receive, and may retry (05-machine-lease.md §2.2: renew and acquire are
idempotent; a lost range is a gap, D19). When Redis did not answer in time, the cause is a
StoreTimeoutException.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRedisStoreException(String message) RedisStoreException(String message, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionstatic RedisStoreExceptionRedis did not answer within the store timeout: the cause is aStoreTimeoutExceptionaroundcause, so that the runtime reports the timeout.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RedisStoreException
-
RedisStoreException
-
-
Method Details
-
timeout
Redis did not answer within the store timeout: the cause is aStoreTimeoutExceptionaroundcause, so that the runtime reports the timeout.- Parameters:
message- the messagecause- the client's timeout- Returns:
- the exception
-