ome.services.throttling
Class AbstractThrottlingStrategy

java.lang.Object
  extended by ome.services.throttling.AbstractThrottlingStrategy
All Implemented Interfaces:
EventListener, BlitzExecutor, ThrottlingStrategy, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener
Direct Known Subclasses:
InThreadThrottlingStrategy, SerialThrottlingStrategy

public abstract class AbstractThrottlingStrategy
extends Object
implements org.springframework.context.ApplicationContextAware, ThrottlingStrategy

Throttling implementation which uses the calling server Thread for execution. This mimics the behavior of the pre-AMD blitz.


Field Summary
protected  OmeroContext ctx
           
protected  org.apache.commons.logging.Log log
           
 
Constructor Summary
AbstractThrottlingStrategy()
           
 
Method Summary
 void onApplicationEvent(org.springframework.context.ApplicationEvent event)
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ome.services.blitz.util.BlitzExecutor
callInvokerOnRawArgs, callInvokerWithMappedArgs, runnableCall, safeRunnableCall
 

Field Detail

log

protected final org.apache.commons.logging.Log log

ctx

protected OmeroContext ctx
Constructor Detail

AbstractThrottlingStrategy

public AbstractThrottlingStrategy()
Method Detail

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException

onApplicationEvent

public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
Specified by:
onApplicationEvent in interface org.springframework.context.ApplicationListener


OmeroJava Api

Version: 4.3.3-00d1137e-b2894

Copyright © 2009 The University of Dundee. All Rights Reserved.