|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.mx.util.JBossNotificationBroadcasterSupport org.jboss.mx.notification.AsynchNotificationBroadcasterSupport
A notification broadcaster with asynch notifications
Nested Class Summary | |
class |
AsynchNotificationBroadcasterSupport.AsynchNotifier
|
Constructor Summary | |
AsynchNotificationBroadcasterSupport()
Construct a new Asyncrhonous broadcaster Calls this(defaultNotificationTimeout, defaultPool) |
|
AsynchNotificationBroadcasterSupport(long notificationTimeout)
Construct a new Asyncrhonous broadcaster. |
|
AsynchNotificationBroadcasterSupport(long notificationTimeout,
org.jboss.util.threadpool.ThreadPool pool)
Construct a new Asyncrhonous broadcaster |
Method Summary | |
static long |
getDefaultNotificationTimeout()
|
long |
getNotificationTimeout()
|
org.jboss.util.threadpool.ThreadPool |
getThreadPool()
|
void |
handleNotification(NotificationListener listener,
Notification notification,
Object handback)
Handle the notification, asynchronously invoke the listener. |
static void |
setDefaultNotificationTimeout(long defaultNotificationTimeout)
|
static void |
setDefaultThreadPool(org.jboss.util.threadpool.ThreadPool tp)
|
void |
setNotificationTimeout(long notificationTimeout)
|
void |
setThreadPool(org.jboss.util.threadpool.ThreadPool pool)
|
protected void |
stopThreadPool(boolean immeadiate)
Invoke stop on the thread pool if its not the class default pool. |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AsynchNotificationBroadcasterSupport()
public AsynchNotificationBroadcasterSupport(long notificationTimeout)
notificationTimeout
- the notification completion timeout in MS. A
0 value means no timeout.public AsynchNotificationBroadcasterSupport(long notificationTimeout, org.jboss.util.threadpool.ThreadPool pool)
notificationTimeout
- - the notification completion timeout in MS. A
0 value means no timeout.pool
- - the thread pool to use for the asynchronous notifcationsMethod Detail |
public static void setDefaultThreadPool(org.jboss.util.threadpool.ThreadPool tp)
public static long getDefaultNotificationTimeout()
public static void setDefaultNotificationTimeout(long defaultNotificationTimeout)
public long getNotificationTimeout()
public void setNotificationTimeout(long notificationTimeout)
public org.jboss.util.threadpool.ThreadPool getThreadPool()
public void setThreadPool(org.jboss.util.threadpool.ThreadPool pool)
public void handleNotification(NotificationListener listener, Notification notification, Object handback)
handleNotification
in class JBossNotificationBroadcasterSupport
listener
- the listener to notifynotification
- the notificationhandback
- the handback objectprotected void stopThreadPool(boolean immeadiate)
immeadiate
- the immeadiate flag passed to the TheadPool#stop
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |