Package com.rabbitmq.stream
Interface Resource
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 Producer is recovering after a connection
problem and resuming publishing when it is open again).
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceContext of a resource state change.static enumResource state.static interfaceApplication listener for aResource.