Class SerialThrottlingStrategy

  • All Implemented Interfaces:
    java.util.EventListener, BlitzExecutor, ThrottlingStrategy, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener

    public class SerialThrottlingStrategy
    extends AbstractThrottlingStrategy
    Throttling implementation which only allows a single invocation to be run at any given time.
    • Constructor Detail

      • SerialThrottlingStrategy

        public SerialThrottlingStrategy​(ome.system.OmeroContext ctx)
    • Method Detail

      • callInvokerOnRawArgs

        public void callInvokerOnRawArgs​(ome.api.ServiceInterface service,
                                         IceMethodInvoker invoker,
                                         java.lang.Object __cb,
                                         Ice.Current __current,
                                         java.lang.Object... args)
        Description copied from interface: BlitzExecutor
        Uses the given IceMethodInvoker to make the method call. All arguments are passed directly into the invoker, and the return value from the invoker is passed to the user.
      • callInvokerWithMappedArgs

        public void callInvokerWithMappedArgs​(ome.api.ServiceInterface service,
                                              IceMethodInvoker invoker,
                                              IceMapper mapper,
                                              java.lang.Object __cb,
                                              Ice.Current __current,
                                              java.lang.Object... args)
        Description copied from interface: BlitzExecutor
        Passes the given arguments to IceMethodInvoker with the assumption that all conversion from omero.* to ome.* has taken place. Similarly, the IceMapper instance will be used to map the return value from ome.* to omero.*.
      • runnableCall

        public void runnableCall​(Ice.Current __current,
                                 Task runnable)
      • safeRunnableCall

        public <R> void safeRunnableCall​(Ice.Current __current,
                                         java.lang.Object __cb,
                                         boolean isVoid,
                                         java.util.concurrent.Callable<R> callable)