Interface Resource.Context
- Enclosing interface:
Resource
public static interface Resource.Context
Context of a resource state change.
-
Method Summary
Modifier and TypeMethodDescriptionThe current (new) state of the resource.The failure cause, can be null.The previous state of the resource.resource()
The resource instance.
-
Method Details
-
resource
-
failureCause
Throwable failureCause()The failure cause, can be null.- Returns:
- failure cause, null if no cause for failure
-
previousState
-
currentState
-