Package com.rabbitmq.client.amqp
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
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
-