Class 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 server Thread for execution. This mimics the behavior of the pre-AMD blitz.
    • Field Detail

      • log

        protected final org.slf4j.Logger log
      • ctx

        protected ome.system.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