Skip navigation links

Oracle® Database RAC FAN Events Java API Reference
11g Release 2 (11.2)

E13993-01


oracle.simplefan
Interface FanSubscription


public interface FanSubscription
Since:
11.2
Version:
$Header: dbjava/simplefan/src/java/oracle/simplefan/FanSubscription.java st_javavm_rhward_update_javadoc_11_2/1 2009/06/26 21:51:27 rhward Exp $
Author:
dsurber

Method Summary
 void addListener(FanEventListener listener)
          Adds a listener.
 void close()
          Closes this subscription.
 void removeListener(FanEventListener listener)
          Removes a listener.

 

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.

Skip navigation links

Oracle® Database RAC FAN Events Java API Reference
11g Release 2 (11.2)

E13993-01


Copyright © 2008, 2009, Oracle and/or its affiliates. All rights reserved.