Interface FanSubscription


  • public interface FanSubscription
    Since:
    11.2
    Version:
    $Header: dbjava/simplefan/src/java/oracle/simplefan/FanSubscription.java /main/2 2009/07/06 13:04:13 rhward Exp $
    Author:
    dsurber
    • Method Detail

      • addListener

        void addListener​(FanEventListener listener)
        Adds a listener. Listeners are called in the order added. The argument is captured.
        Parameters:
        listener - the object to be added and notified of FAN events.
        Throws:
        java.lang.IllegalStateException - if the recevier is closed.
      • removeListener

        void removeListener​(FanEventListener listener)
        Removes a listener. The argument is not captured.
        Parameters:
        listener - the object to be removed from the list of listeners.
        Throws:
        java.lang.IllegalArgumentException - if the param is not present in the list of listeners.
      • close

        void close()
        Closes this subscription. This method may return before all activity completes. In particular, some listeners may receive additional events even after the method returns. Closing an already closed object does nothing.