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: