Class InThreadThrottlingStrategy

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

    public class InThreadThrottlingStrategy
    extends AbstractThrottlingStrategy
    Throttling implementation which uses the calling server Thread for execution. This mimics the behavior of the pre-AMD blitz.
    • Constructor Detail

      • InThreadThrottlingStrategy

        public InThreadThrottlingStrategy​(ome.security.basic.CurrentDetails cd)
    • 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.*.
      • safeRunnableCall

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

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