Package ome.services.throttling
Class AbstractThrottlingStrategy
- java.lang.Object
-
- ome.services.throttling.AbstractThrottlingStrategy
-
- All Implemented Interfaces:
java.util.EventListener
,BlitzExecutor
,ThrottlingStrategy
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
,org.springframework.context.ApplicationListener
- Direct Known Subclasses:
InThreadThrottlingStrategy
,SerialThrottlingStrategy
public abstract class AbstractThrottlingStrategy extends java.lang.Object implements org.springframework.context.ApplicationContextAware, ThrottlingStrategy
Throttling implementation which uses the calling serverThread
for execution. This mimics the behavior of the pre-AMD blitz.
-
-
Constructor Summary
Constructors Constructor Description AbstractThrottlingStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Method Detail
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener
-
-