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 Details

    • RedisStoreException

      public RedisStoreException(String message)
    • RedisStoreException

      public RedisStoreException(String message, Throwable cause)
  • Method Details

    • timeout

      public static RedisStoreException timeout(String message, Throwable cause)
      Redis did not answer within the store timeout: the cause is a StoreTimeoutException around cause, so that the runtime reports the timeout.
      Parameters:
      message - the message
      cause - the client's timeout
      Returns:
      the exception