org.jasig.portal.events
Class ThreadedEventListener

java.lang.Object
  extended by org.jasig.portal.events.AbstractEventListener
      extended by org.jasig.portal.events.ThreadedEventListener
All Implemented Interfaces:
EventListener, InitializingBean, ApplicationListener

Deprecated. Use PortalEventListener and PortalEventMulticaster

@Deprecated
public final class ThreadedEventListener
extends AbstractEventListener

Implementation of EventListener that assumes that EventHandlers will be doing something I/O Intensive that they may block users from seeing a "snappy" response, and thus call the EventHandlers in their own thread.

This uses The Backport Concurrent Library to provide threading and has the following defaults:

Since:
2.6
Version:
$Revision: 19776 $ $Date: 2010-01-14 16:17:21 -0600 (Thu, 14 Jan 2010) $
Author:
Scott Battaglia

Constructor Summary
ThreadedEventListener()
          Deprecated.  
 
Method Summary
protected  void afterPropertiesSetInternal()
          Deprecated.  
protected  void onApplicationEventInternal(PortalEvent event, EventHandler handler)
          Deprecated.  
 void setInitialThreads(int initialThreads)
          Deprecated.  
 void setMaxThreads(int maxThreads)
          Deprecated.  
 void setThreadPriority(int threadPriority)
          Deprecated.  
 
Methods inherited from class org.jasig.portal.events.AbstractEventListener
afterPropertiesSet, onApplicationEvent, setEventHandlers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadedEventListener

public ThreadedEventListener()
Deprecated. 
Method Detail

afterPropertiesSetInternal

protected void afterPropertiesSetInternal()
                                   throws Exception
Deprecated. 
Overrides:
afterPropertiesSetInternal in class AbstractEventListener
Throws:
Exception

onApplicationEventInternal

protected void onApplicationEventInternal(PortalEvent event,
                                          EventHandler handler)
Deprecated. 
Specified by:
onApplicationEventInternal in class AbstractEventListener

setInitialThreads

public void setInitialThreads(int initialThreads)
Deprecated. 

setMaxThreads

public void setMaxThreads(int maxThreads)
Deprecated. 

setThreadPriority

public void setThreadPriority(int threadPriority)
Deprecated. 


Copyright © 2010 Jasig. All Rights Reserved.