## mx4j.remote
Interface RemoteNotificationClientHandler

All Known Implementing Classes:
  AbstractRemoteNotificationClientHandler

public interface RemoteNotificationClientHandler

Handles remote notification fetching on client side. It takes care of calling the server side with the correct protocol and to dispatch notifications to client-side listeners.

Version:
  $Revision: 1.10 $
See Also:
  `RemoteNotificationServerHandler`

Method Summary
`void` `addNotificationListener(java.lang.Integer id, NotificationTuple tuple)` Adds the given tuple with the given listener ID to this handler
`boolean` `contains(NotificationTuple tuple)` Returns whether the tuple is already present in this handler
`java.lang.Integer` `getNotificationListener(NotificationTuple tuple)` Returns the ID of the listener for the given tuple
`java.lang.Integer[]` `getNotificationListeners(NotificationTuple tuple)` Returns the IDs of the listeners for the given tuple
`void` `removeNotificationListeners(java.lang.Integer[] ids)` Removes the listeners with the given IDs from this handler
`void` `start()` Starts notification fetching
`void` `stop()` Stops notification fetching

Method Detail

### start

    public void start()

  Starts notification fetching

  See Also:
    `stop()`

### stop

    public void stop()

  Stops notification fetching

  See Also:
    `start()`

### contains

    public boolean contains(NotificationTuple tuple)

  Returns whether the tuple is already present in this handler

### addNotificationListener

    public void addNotificationListener(java.lang.Integer id,
                                        NotificationTuple tuple)

  Adds the given tuple with the given listener ID to this handler

  See Also:
    `MBeanServerConnection.addNotificationListener(javax.management.ObjectName, javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object)`, `removeNotificationListeners(java.lang.Integer[])`

### getNotificationListeners

    public java.lang.Integer[] getNotificationListeners(NotificationTuple tuple)

  Returns the IDs of the listeners for the given tuple

  See Also:
    `MBeanServerConnection.removeNotificationListener(javax.management.ObjectName, javax.management.NotificationListener)`, `getNotificationListener(mx4j.remote.NotificationTuple)`

### getNotificationListener

    public java.lang.Integer getNotificationListener(NotificationTuple tuple)

  Returns the ID of the listener for the given tuple

  See Also:
    `MBeanServerConnection.removeNotificationListener(javax.management.ObjectName, javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object)`, `getNotificationListeners(mx4j.remote.NotificationTuple)`

### removeNotificationListeners

    public void removeNotificationListeners(java.lang.Integer[] ids)

  Removes the listeners with the given IDs from this handler

  See Also:
    `addNotificationListener(java.lang.Integer, mx4j.remote.NotificationTuple)`

Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.