FailThrough
play.api.cache.redis.FailThrough
trait FailThrough extends RecoveryPolicy
It fails on failure, i.e., propages the exception to upper layers
Attributes
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
override def recoverFrom[T](rerun: => Future[T], default: => Future[T], failure: RedisException): Future[T]
When a failure occurs, this method handles it. It may re-run it, return default value, log it or propagate the exception.
When a failure occurs, this method handles it. It may re-run it, return default value, log it or propagate the exception.
Type parameters
- T
-
expected result type
Value parameters
- default
-
default value neutral to the operation
- failure
-
incident report
- rerun
-
failed request (cache operation)
Attributes
- Returns
-
failure recovery or exception
- Definition Classes
Inherited methods
name of the policy used for internal purposes
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Definition Classes
-
RecoveryPolicy -> Any
- Inherited from:
- RecoveryPolicy
In this article