mx4j.remote
public class DefaultRemoteNotificationServerHandler extends Object implements RemoteNotificationServerHandler
Version: $Revision: 1.12 $
Constructor Summary | |
---|---|
DefaultRemoteNotificationServerHandler(Map environment)
Creates a new remote notification server handler.
|
Method Summary | |
---|---|
void | addNotificationListener(Integer id, NotificationTuple tuple) |
NotificationTuple[] | close() |
NotificationResult | fetchNotifications(long sequenceNumber, int maxNotifications, long timeout) |
protected TargetedNotification[] | filterNotifications(TargetedNotification[] notifications)
This method filters the given notification array and returns a possibly smaller array containing
only notifications that passed successfully the filtering.
|
Integer | generateListenerID(ObjectName name, NotificationFilter filter) |
protected Logger | getLogger() |
NotificationListener | getServerNotificationListener() |
NotificationTuple | removeNotificationListener(Integer id) |
protected boolean | waitForNotifications(Object lock, long timeout)
Called when there are no notifications to send to the client.
|
Parameters: environment Contains environment variables used to configure this handler
See Also: NOTIFICATION_BUFFER_CAPACITY NOTIFICATION_PURGE_DISTANCE
Parameters: lock The object on which DefaultRemoteNotificationServerHandler should be called timeout The amount of time to wait (guaranteed to be strictly greater than 0)