Class ContextAwareCallable<T>

java.lang.Object
com.almis.awe.thread.ContextAwareCallable<T>
Type Parameters:
T - type of ContextAwareCallable
All Implemented Interfaces:
Callable<T>

public class ContextAwareCallable<T> extends Object implements Callable<T>
Created by pgarcia on 07/04/2017.
  • Constructor Details

    • ContextAwareCallable

      public ContextAwareCallable(Callable<T> task, org.springframework.web.context.request.RequestAttributes context, org.springframework.security.core.context.SecurityContext securityContext)
      Constructor
      Parameters:
      task - task
      context - context
  • Method Details

    • call

      public T call() throws Exception
      Call function
      Specified by:
      call in interface Callable<T>
      Returns:
      launch ContextAwareCallable
      Throws:
      Exception - exception