Package | Description |
---|---|
com.atlassian.bamboo.core |
Modifier and Type | Method and Description |
---|---|
static <S> ScopedExclusionService.ExclusiveFunction<S,Void,Exception> |
ScopedExclusionServiceHelper.adapt(Callable<S> callable)
Adapts the supplied parameter to
ScopedExclusionService.ExclusiveFunction |
static <S,V> ScopedExclusionService.ExclusiveFunction<S,V,RuntimeException> |
ScopedExclusionServiceHelper.adapt(com.google.common.base.Function<S,V> function)
Adapts the supplied parameter to
ScopedExclusionService.ExclusiveFunction |
static <S,V,E extends Exception> |
ScopedExclusionServiceHelper.adapt(LimitedConcurrencyCaller.Callable<V,E> callable)
Adapts the supplied parameter to
ScopedExclusionService.ExclusiveFunction |
static <S> ScopedExclusionService.ExclusiveFunction<S,Void,RuntimeException> |
ScopedExclusionServiceHelper.adapt(Runnable runnable)
Adapts the supplied parameter to
ScopedExclusionService.ExclusiveFunction |
static <S,V> ScopedExclusionService.ExclusiveFunction<S,V,RuntimeException> |
ScopedExclusionServiceHelper.adapt(com.google.common.base.Supplier<V> supplier)
Adapts the supplied parameter to
ScopedExclusionService.ExclusiveFunction |
static <S,V> ScopedExclusionService.ExclusiveFunction<S,V,RuntimeException> |
ScopedExclusionServiceHelper.adapt(com.atlassian.util.concurrent.Supplier<V> supplier)
Deprecated.
since 6.8.0 use
Supplier instead |
static <S,V> ScopedExclusionService.ExclusiveFunction<S,V,RuntimeException> |
ScopedExclusionServiceHelper.adapt(Supplier<V> supplier) |
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 Type | Method and Description |
---|---|
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> |
ScopedExclusionServiceImpl.tryWithLock(Enum<?> scopeType,
S objectToLock,
ScopedExclusionService.ExclusiveFunction<S,V,E> function) |
<S,V,E extends Throwable> |
ScopedExclusionService.tryWithLock(Enum<?> scopeType,
S objectToLock,
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> |
ScopedExclusionServiceImpl.withLock(Enum<?> scopeType,
S objectToLock,
ScopedExclusionService.ExclusiveFunction<S,V,E> function) |
<S,V,E extends Throwable> |
ScopedExclusionService.withLock(Enum<?> scopeType,
S objectToLock,
ScopedExclusionService.ExclusiveFunction<S,V,E> function)
Executes function with lock taken in a given scope and object name.
|
static <V,E extends Throwable> |
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> |
ScopedExclusionServiceHelper.withLockedIdIdentifiedEntity(ScopedExclusionService exclusionService,
long id,
ScopedExclusionService.ExclusiveFunction<Long,V,E> functor) |
static <V,E extends Throwable> |
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> |
ScopedExclusionServiceHelper.withLockedKeyIdentifiedEntity(ScopedExclusionService exclusionService,
Key key,
ScopedExclusionService.ExclusiveFunction<Key,V,E> functor) |
<S,V,E extends Throwable,F extends Throwable> |
ScopedExclusionServiceImpl.withNewLockedObject(Enum<?> generationScopeType,
S objectToLockDuringGeneration,
Enum<?> generatedObjectScope,
ScopedExclusionService.GeneratorCallable<S,F> objectGenerator,
ScopedExclusionService.ExclusiveFunction<S,V,E> function) |
<S,V,E extends Throwable,F extends Throwable> |
ScopedExclusionService.withNewLockedObject(Enum<?> generationScope,
S objectToLockDuringGeneration,
Enum<?> generatedObjectScope,
ScopedExclusionService.GeneratorCallable<S,F> objectGenerator,
ScopedExclusionService.ExclusiveFunction<S,V,E> function)
Executes code with a new, unique name generated within given exclusion scope and locked for exclusive use.
|
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.