Uses of Interface
com.atlassian.bamboo.core.ScopedExclusionService.ExclusiveFunction
-
Uses of ScopedExclusionService.ExclusiveFunction in com.atlassian.bamboo.core
Modifier and TypeMethodDescriptionstatic <S,
V, E extends Exception>
ScopedExclusionService.ExclusiveFunction<S,V, E> ScopedExclusionServiceHelper.adapt
(LimitedConcurrencyCaller.Callable<V, E> callable) Adapts the supplied parameter toScopedExclusionService.ExclusiveFunction
static <S,
V> ScopedExclusionService.ExclusiveFunction<S, V, RuntimeException> ScopedExclusionServiceHelper.adapt
(com.google.common.base.Supplier<V> supplier) Adapts the supplied parameter toScopedExclusionService.ExclusiveFunction
static <S> ScopedExclusionService.ExclusiveFunction<S,
Void, RuntimeException> Adapts the supplied parameter toScopedExclusionService.ExclusiveFunction
static <S> ScopedExclusionService.ExclusiveFunction<S,
Void, Exception> Adapts the supplied parameter toScopedExclusionService.ExclusiveFunction
static <S,
V> ScopedExclusionService.ExclusiveFunction<S, V, RuntimeException> Adapts the supplied parameter toScopedExclusionService.ExclusiveFunction
static <S,
V> ScopedExclusionService.ExclusiveFunction<S, V, RuntimeException> static <S,
V> ScopedExclusionService.ExclusiveFunction<S, V, RuntimeException> ScopedExclusionServiceHelper.clearSession
(ScopedExclusionService.ExclusiveFunction<S, V, RuntimeException> function) Delegates a call to the supplied function, first flushing and clearing the Hibernate session.Modifier and TypeMethodDescriptionstatic <S,
V> ScopedExclusionService.ExclusiveFunction<S, V, RuntimeException> ScopedExclusionServiceHelper.clearSession
(ScopedExclusionService.ExclusiveFunction<S, V, RuntimeException> function) Delegates a call to the supplied function, first flushing and clearing the Hibernate session.ScopedExclusionService.tryWithLock
(@NotNull Enum<?> scopeType, S objectToLock, @NotNull ScopedExclusionService.ExclusiveFunction<S, V, E> function) Executes function with lock taken in a given scope and object name or returns immediately if lock is already taken.ScopedExclusionServiceImpl.tryWithLock
(@NotNull Enum<?> scopeType, S objectToLock, @NotNull ScopedExclusionService.ExclusiveFunction<S, V, E> function) <S,
V, E extends Throwable>
VScopedExclusionService.withLock
(@NotNull Enum<?> scopeType, S objectToLock, @NotNull ScopedExclusionService.ExclusiveFunction<S, V, E> function) Executes function with lock taken in a given scope and object name.<S,
V, E extends Throwable>
VScopedExclusionServiceImpl.withLock
(@NotNull Enum<?> scopeType, S objectToLock, @NotNull ScopedExclusionService.ExclusiveFunction<S, V, E> function) static <V,
E extends Throwable>
VScopedExclusionServiceHelper.withLockedChain
(ScopedExclusionService exclusionService, PlanKey planKey, ScopedExclusionService.ExclusiveFunction<PlanKey, V, E> functor) Executes the function while holding an exclusive lock on planKey interpreted as chain key.static <V,
E extends Throwable>
VScopedExclusionServiceHelper.withLockedIdIdentifiedEntity
(ScopedExclusionService exclusionService, long id, ScopedExclusionService.ExclusiveFunction<Long, V, E> functor) static <V,
E extends Throwable>
VScopedExclusionServiceHelper.withLockedJob
(ScopedExclusionService exclusionService, PlanKey planKey, ScopedExclusionService.ExclusiveFunction<PlanKey, V, E> functor) Executes the function while holding an exclusive lock on planKey interpreted as job key.static <V,
E extends Throwable>
VScopedExclusionServiceHelper.withLockedKeyIdentifiedEntity
(ScopedExclusionService exclusionService, Key key, ScopedExclusionService.ExclusiveFunction<Key, V, E> functor) ScopedExclusionService.withNewLockedObject
(@NotNull Enum<?> generationScope, S objectToLockDuringGeneration, @Nullable Enum<?> generatedObjectScope, @NotNull ScopedExclusionService.GeneratorCallable<S, F> objectGenerator, @NotNull ScopedExclusionService.ExclusiveFunction<S, V, E> function) Executes code with a new, unique name generated within given exclusion scope and locked for exclusive use.ScopedExclusionServiceImpl.withNewLockedObject
(@NotNull Enum<?> generationScopeType, S objectToLockDuringGeneration, @Nullable Enum<?> generatedObjectScope, @NotNull ScopedExclusionService.GeneratorCallable<S, F> objectGenerator, @NotNull ScopedExclusionService.ExclusiveFunction<S, V, E> function)