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:
    Producer, Consumer