Class SentryTaskDecorator

  • All Implemented Interfaces:
    org.springframework.core.task.TaskDecorator

    public final class SentryTaskDecorator
    extends java.lang.Object
    implements org.springframework.core.task.TaskDecorator
    Sets a current hub on a thread running a Runnable given by parameter. Used to propagate the current IHub on the thread executing async task - like MVC controller methods returning a Callable or Spring beans methods annotated with Async.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull java.lang.Runnable decorate​(@NotNull java.lang.Runnable runnable)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SentryTaskDecorator

        public SentryTaskDecorator()
    • Method Detail

      • decorate

        @NotNull
        public @NotNull java.lang.Runnable decorate​(@NotNull
                                                    @NotNull java.lang.Runnable runnable)
        Specified by:
        decorate in interface org.springframework.core.task.TaskDecorator