|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.mx.notification.AsynchNotificationBroadcasterSupport
A notification broadcaster with asynch notifications
Nested Class Summary | |
class |
AsynchNotificationBroadcasterSupport.AsynchNotifier (src)
|
Constructor Summary | |
AsynchNotificationBroadcasterSupport()
Construct a new Asyncrhonous broadcaster Calls this(defaultNotificationTimeout, defaultPool) |
|
AsynchNotificationBroadcasterSupport(long notificationTimeout)
Construct a new Asyncrhonous broadcaster. |
|
AsynchNotificationBroadcasterSupport(long notificationTimeout,
ThreadPool (src) pool)
Construct a new Asyncrhonous broadcaster |
Method Summary | |
static long |
getDefaultNotificationTimeout()
|
long |
getNotificationTimeout()
|
ThreadPool (src) |
getThreadPool()
|
void |
handleNotification(NotificationListener (src) listener,
Notification (src) notification,
java.lang.Object handback)
Handle the notification, asynchronously invoke the listener. |
static void |
setDefaultNotificationTimeout(long defaultNotificationTimeout)
|
static void |
setDefaultThreadPool(ThreadPool (src) tp)
|
void |
setNotificationTimeout(long notificationTimeout)
|
void |
setThreadPool(ThreadPool (src) 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 (src) |
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, ThreadPool (src) 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(ThreadPool (src) tp)
public static long getDefaultNotificationTimeout()
public static void setDefaultNotificationTimeout(long defaultNotificationTimeout)
public long getNotificationTimeout()
public void setNotificationTimeout(long notificationTimeout)
public ThreadPool (src) getThreadPool()
public void setThreadPool(ThreadPool (src) pool)
public void handleNotification(NotificationListener (src) listener, Notification (src) notification, java.lang.Object handback)
handleNotification
in class JBossNotificationBroadcasterSupport (src)
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 (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |