Interface Resource.Context

Enclosing interface:
Resource

public static interface Resource.Context
Context of a resource state change.
  • Method Details

    • resource

      Resource resource()
      The resource instance.
      Returns:
      resource instance
    • failureCause

      Throwable failureCause()
      The failure cause, can be null.
      Returns:
      failure cause, null if no cause for failure
    • previousState

      Resource.State previousState()
      The previous state of the resource.
      Returns:
      previous state
    • currentState

      Resource.State currentState()
      The current (new) state of the resource.
      Returns:
      current state