| java.lang.Object org.jboss.mx.util.JBossNotificationBroadcasterSupport org.jboss.mx.notification.AsynchNotificationBroadcasterSupport
AsynchNotificationBroadcasterSupport | public class AsynchNotificationBroadcasterSupport extends JBossNotificationBroadcasterSupport (Code) | | A notification broadcaster with asynch notifications
author: Adrian Brock. author: Scott.Stark@jboss.org version: $Revision: 57200 $ |
Inner Class :public class AsynchNotifier implements Runnable | |
AsynchNotificationBroadcasterSupport | public AsynchNotificationBroadcasterSupport()(Code) | | Construct a new Asyncrhonous broadcaster
Calls this(defaultNotificationTimeout, defaultPool)
|
AsynchNotificationBroadcasterSupport | public AsynchNotificationBroadcasterSupport(long notificationTimeout)(Code) | | Construct a new Asyncrhonous broadcaster. Calls
this(notificationTimeout, defaultPool)
Parameters: notificationTimeout - the notification completion timeout in MS. A0 value means no timeout. |
AsynchNotificationBroadcasterSupport | public AsynchNotificationBroadcasterSupport(long notificationTimeout, ThreadPool pool)(Code) | | Construct a new Asyncrhonous broadcaster
Parameters: notificationTimeout - - the notification completion timeout in MS. A0 value means no timeout. Parameters: pool - - the thread pool to use for the asynchronous notifcations |
getDefaultNotificationTimeout | public static long getDefaultNotificationTimeout()(Code) | | |
getNotificationTimeout | public long getNotificationTimeout()(Code) | | |
getThreadPool | public ThreadPool getThreadPool()(Code) | | |
handleNotification | public void handleNotification(NotificationListener listener, Notification notification, Object handback)(Code) | | Handle the notification, asynchronously invoke the listener.
Parameters: listener - the listener to notify Parameters: notification - the notification Parameters: handback - the handback object |
setDefaultNotificationTimeout | public static void setDefaultNotificationTimeout(long defaultNotificationTimeout)(Code) | | |
setDefaultThreadPool | public static synchronized void setDefaultThreadPool(ThreadPool tp)(Code) | | |
setNotificationTimeout | public void setNotificationTimeout(long notificationTimeout)(Code) | | |
setThreadPool | public void setThreadPool(ThreadPool pool)(Code) | | |
stopThreadPool | protected void stopThreadPool(boolean immeadiate)(Code) | | Invoke stop on the thread pool if its not the class default pool.
Parameters: immeadiate - the immeadiate flag passed to the TheadPool#stop |
|
|