mx4j/src/core/mx4j/remote RemoteNotificationServerHandler.java,1.4,1.5

Simone Bordet <[email protected]>
Newsgroups gmane.comp.java.mx4j.cvs
Message-ID <[email protected]>
Update of /cvsroot/mx4j/mx4j/src/core/mx4j/remote
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28691/src/core/mx4j/remote

Modified Files:
	RemoteNotificationServerHandler.java 
Log Message:
+ Made fetchNotifications throw IOException
+ Improved JavaDocs

Index: RemoteNotificationServerHandler.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/core/mx4j/remote/RemoteNotificationServerHandler.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** RemoteNotificationServerHandler.java	24 Feb 2004 14:06:50 -0000	1.4
--- RemoteNotificationServerHandler.java	18 Jul 2004 21:26:10 -0000	1.5
***************
*** 9,15 ****
  package mx4j.remote;
  
! import javax.management.ObjectName;
  import javax.management.NotificationFilter;
  import javax.management.NotificationListener;
  import javax.management.remote.NotificationResult;
  
--- 9,16 ----
  package mx4j.remote;
  
! import java.io.IOException;
  import javax.management.NotificationFilter;
  import javax.management.NotificationListener;
+ import javax.management.ObjectName;
  import javax.management.remote.NotificationResult;
  
***************
*** 18,24 ****
   * It takes care of collecting requests for listener addition and removal, and to send
   * notifications back to the client side.
!  * @see RemoteNotificationClientHandler
   * @author <a href="mailto:[email protected]">Simone Bordet</a>
   * @version $Revision$
   */
  public interface RemoteNotificationServerHandler
--- 19,26 ----
   * It takes care of collecting requests for listener addition and removal, and to send
   * notifications back to the client side.
!  *
   * @author <a href="mailto:[email protected]">Simone Bordet</a>
   * @version $Revision$
+  * @see RemoteNotificationClientHandler
   */
  public interface RemoteNotificationServerHandler
***************
*** 26,29 ****
--- 28,32 ----
     /**
      * Returns a unique ID for a client-side NotificationListener
+     *
      * @see #addNotificationListener
      */
***************
*** 38,41 ****
--- 41,45 ----
     /**
      * Adds the given tuple with the given listener ID to this handler
+     *
      * @see #removeNotificationListener
      */
***************
*** 44,47 ****
--- 48,52 ----
     /**
      * Removes the listener with the given ID from this handler
+     *
      * @see #addNotificationListener
      */
***************
*** 51,60 ****
      * Fetches notifications from the notification buffer in order to send them
      * to the client side
      */
!    public NotificationResult fetchNotifications(long sequenceNumber, int maxNotifications, long timeout);
  
     /**
      * Closes this handler, that will not accept anymore add or removal of listeners
      * @return The NotificationTuples currently held
      */
     public NotificationTuple[] close();
--- 56,69 ----
      * Fetches notifications from the notification buffer in order to send them
      * to the client side
+     *
+     * @throws IOException If this handler has already been closed
      */
!    public NotificationResult fetchNotifications(long sequenceNumber, int maxNotifications, long timeout) throws IOException;
  
     /**
      * Closes this handler, that will not accept anymore add or removal of listeners
+     *
      * @return The NotificationTuples currently held
+     * @see #fetchNotifications
      */
     public NotificationTuple[] close();



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.