public class ScopedExclusionServiceHelper extends Object
ScopedExclusionService
.public static <V,E extends Throwable> V withLockedKeyIdentifiedEntity(ScopedExclusionService exclusionService, Key key, ScopedExclusionService.ExclusiveFunction<Key,V,E> functor) throws E extends Throwable
E extends Throwable
public static <V,E extends Throwable> V withLockedIdIdentifiedEntity(ScopedExclusionService exclusionService, long id, ScopedExclusionService.ExclusiveFunction<Long,V,E> functor) throws E extends Throwable
E extends Throwable
public static <V,E extends Throwable> V withLockedJob(ScopedExclusionService exclusionService, PlanKey planKey, ScopedExclusionService.ExclusiveFunction<PlanKey,V,E> functor) throws E extends Throwable
exclusionService
- planKey
- functor
- E extends Throwable
public static <V,E extends Throwable> V withLockedChain(ScopedExclusionService exclusionService, PlanKey planKey, ScopedExclusionService.ExclusiveFunction<PlanKey,V,E> functor) throws E extends Throwable
exclusionService
- planKey
- functor
- E extends Throwable
public static <S,V> ScopedExclusionService.ExclusiveFunction<S,V,RuntimeException> clearSession(ScopedExclusionService.ExclusiveFunction<S,V,RuntimeException> function)
public static <S,V> ScopedExclusionService.ExclusiveFunction<S,V,RuntimeException> adapt(com.google.common.base.Function<S,V> function)
ScopedExclusionService.ExclusiveFunction
public static <S,V> ScopedExclusionService.ExclusiveFunction<S,V,RuntimeException> adapt(com.google.common.base.Supplier<V> supplier)
ScopedExclusionService.ExclusiveFunction
@Deprecated public static <S,V> ScopedExclusionService.ExclusiveFunction<S,V,RuntimeException> adapt(com.atlassian.util.concurrent.Supplier<V> supplier)
Supplier
insteadScopedExclusionService.ExclusiveFunction
public static <S,V> ScopedExclusionService.ExclusiveFunction<S,V,RuntimeException> adapt(Supplier<V> supplier)
public static <S> ScopedExclusionService.ExclusiveFunction<S,Void,RuntimeException> adapt(Runnable runnable)
ScopedExclusionService.ExclusiveFunction
public static <S> ScopedExclusionService.ExclusiveFunction<S,Void,Exception> adapt(Callable<S> callable)
ScopedExclusionService.ExclusiveFunction
public static <S,V,E extends Exception> ScopedExclusionService.ExclusiveFunction<S,V,E> adapt(LimitedConcurrencyCaller.Callable<V,E> callable)
ScopedExclusionService.ExclusiveFunction
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.