public abstract class AbstractThrottlingStrategy extends Object implements org.springframework.context.ApplicationContextAware, ThrottlingStrategy
Thread
for
execution. This mimics the behavior of the pre-AMD blitz.Modifier and Type | Field and Description |
---|---|
protected OmeroContext |
ctx |
protected org.slf4j.Logger |
log |
Constructor and Description |
---|
AbstractThrottlingStrategy() |
Modifier and Type | Method and Description |
---|---|
void |
onApplicationEvent(org.springframework.context.ApplicationEvent event)
Handle an application event.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Set the ApplicationContext that this object runs in.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
callInvokerOnRawArgs, callInvokerWithMappedArgs, runnableCall, safeRunnableCall
protected final org.slf4j.Logger log
protected OmeroContext ctx
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
org.springframework.context.ApplicationContextAware
Invoked after population of normal bean properties but before an init callback such
as InitializingBean.afterPropertiesSet()
or a custom init-method. Invoked after ResourceLoaderAware.setResourceLoader(org.springframework.core.io.ResourceLoader)
,
ApplicationEventPublisherAware.setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher)
and
MessageSourceAware
, if applicable.
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
applicationContext
- the ApplicationContext object to be used by this objectorg.springframework.context.ApplicationContextException
- in case of context initialization errorsorg.springframework.beans.BeansException
- if thrown by application context methodsBeanInitializationException
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
org.springframework.context.ApplicationListener
onApplicationEvent
in interface org.springframework.context.ApplicationListener
event
- the event to respond to
Version: 5.1.4-ice35-b55
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.