final classAkkaTimeoutFailurewall[A] extends Failurewall[A, A]
A Failurewall to give up waiting for a call to be completed if that takes a long time.
Note
AkkaTimeoutFailurewall almost ensures that calls will be completed within the time limit.
However, that does not mean that calls are stopped or shut down.
For instance, if AkkaTimeoutFailurewall wraps a http call and times out,
the returned Future is completed but the http call is not cancelled and
it is possible that the TCP connection leaks.
Define onTimeout callback if necessary.
,
The accuracy of timeout duration depends on Akka's Scheduler.
Linear Supertypes
Failurewall[A, A], AnyRef, Any
Ordering
Alphabetic
By inheritance
Inherited
AkkaTimeoutFailurewall
Failurewall
AnyRef
Any
Hide All
Show all
Visibility
Public
All
Instance Constructors
newAkkaTimeoutFailurewall(duration: FiniteDuration, scheduler: Scheduler, onTimeout: ⇒ Unit, executor: ExecutionContext)
duration
duration for timeouts
scheduler
scheduler
onTimeout
a call to be executed on timeout
executor
ExecutionContext
Value Members
final def!=(arg0: Any): Boolean
Definition Classes
AnyRef → Any
final def##(): Int
Definition Classes
AnyRef → Any
final def==(arg0: Any): Boolean
Definition Classes
AnyRef → Any
final defasInstanceOf[T0]: T0
Definition Classes
Any
defcall(body: ⇒ Future[A]): Future[A]
Invokes a call and returns error if it times out.
Invokes a call and returns error if it times out.
body
call to need timeout
returns
the result of body with this Failurewall or
a failed future with FailurewallException if the call times out
A Failurewall to give up waiting for a call to be completed if that takes a long time.
AkkaTimeoutFailurewall almost ensures that calls will be completed within the time limit. However, that does not mean that calls are stopped or shut down. For instance, if AkkaTimeoutFailurewall wraps a http call and times out, the returned Future is completed but the http call is not cancelled and it is possible that the TCP connection leaks. Define
,onTimeout
callback if necessary.The accuracy of timeout duration depends on Akka's Scheduler.