Class CacheLoadContextSupport

java.lang.Object
com.atlassian.bamboo.plan.cache.CacheLoadContextSupport

public class CacheLoadContextSupport extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
     
    static <V> V
    load(@NotNull org.springframework.transaction.support.TransactionTemplate transactionTemplate, @NotNull org.hibernate.SessionFactory sessionFactory, @NotNull Callable<V> callable)
    This method will mark the current thread as being in cache load context (see isInCacheLoadContext() and executes the supplied callback within a transaction retrieved from transactionTemplate.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • isInCacheLoadContext

      public static boolean isInCacheLoadContext()
    • load

      public static <V> V load(@NotNull @NotNull org.springframework.transaction.support.TransactionTemplate transactionTemplate, @NotNull @NotNull org.hibernate.SessionFactory sessionFactory, @NotNull @NotNull Callable<V> callable)
      This method will mark the current thread as being in cache load context (see isInCacheLoadContext() and executes the supplied callback within a transaction retrieved from transactionTemplate.