A trait to ensure some set of closeable resources are closed in the event of a throwable occuring
during a request. This can be combined with other AsyncHandlers, for example the OkHandler
provided by Dispatch, to ensure that any closeable resources are cleanly shut down in the event
of an exception.
See the implementation of dispatch.as.File for an example of how this is used.
Linear Supertypes
AsyncHandler[T], AnyRef, Any
Ordering
Alphabetic
By Inheritance
Inherited
CloseResourcesOnThrowableHandler
AsyncHandler
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Abstract Value Members
abstract defcloseable: Seq[Closeable]
abstract defonBodyPartReceived(arg0: HttpResponseBodyPart): State
Definition Classes
AsyncHandler
Annotations
@throws(classOf[java.lang.Exception])
abstract defonCompleted(): T
Definition Classes
AsyncHandler
Annotations
@throws(classOf[java.lang.Exception])
abstract defonHeadersReceived(arg0: HttpHeaders): State
Definition Classes
AsyncHandler
Annotations
@throws(classOf[java.lang.Exception])
abstract defonStatusReceived(arg0: HttpResponseStatus): State
A trait to ensure some set of closeable resources are closed in the event of a throwable occuring during a request. This can be combined with other AsyncHandlers, for example the OkHandler provided by Dispatch, to ensure that any closeable resources are cleanly shut down in the event of an exception.
See the implementation of dispatch.as.File for an example of how this is used.