Package com.rabbitmq.client.amqp
Interface Resource
- All Known Subinterfaces:
Connection
,Consumer
,Publisher
public interface Resource
Marker interface for
Resource
-like classes.
Instances of these classes have different states during their lifecycle: open, recovering,
closed, etc. Application can be interested in taking some actions for a given state (e.g.
stopping publishing when a Publisher
is recovering after a connection problem and
resuming publishing when it is open again).
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Context of a resource state change.static enum
Resource state.static interface
Application listener for aResource
.