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.
|
<S,V,E extends Throwable> io.atlassian.fugue.Either<Boolean,Optional<V>> |
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.
|
<S,V,E extends Throwable> io.atlassian.fugue.Either<Boolean,Optional<V>> |
ScopedExclusionServiceImpl.tryWithLock(@NotNull Enum<?> scopeType,
S objectToLock,
@NotNull ScopedExclusionService.ExclusiveFunction<S,V,E> function) |
|
<S,V,E extends Throwable> V |
ScopedExclusionService.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> V |
ScopedExclusionServiceImpl.withLock(@NotNull Enum<?> scopeType,
S objectToLock,
@NotNull ScopedExclusionService.ExclusiveFunction<S,V,E> function) |
|
static <V,E extends Throwable> V |
ScopedExclusionServiceHelper.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> V |
ScopedExclusionServiceHelper.withLockedIdIdentifiedEntity(ScopedExclusionService exclusionService,
long id,
ScopedExclusionService.ExclusiveFunction<Long,V,E> functor) |
|
static <V,E extends Throwable> V |
ScopedExclusionServiceHelper.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> V |
ScopedExclusionServiceHelper.withLockedKeyIdentifiedEntity(ScopedExclusionService exclusionService,
Key key,
ScopedExclusionService.ExclusiveFunction<Key,V,E> functor) |
|
<S,V,E extends Throwable,F extends Throwable> V |
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.
|
<S,V,E extends Throwable,F extends Throwable> V |
ScopedExclusionServiceImpl.withNewLockedObject(@NotNull Enum<?> generationScopeType,
S objectToLockDuringGeneration,
@Nullable Enum<?> generatedObjectScope,
@NotNull ScopedExclusionService.GeneratorCallable<S,F> objectGenerator,
@NotNull ScopedExclusionService.ExclusiveFunction<S,V,E> function) |
|