Index

A C D F G I L N O R S T U 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

AdaptedSemaphoreNamedLock - Class in org.eclipse.aether.named.support
Named lock support implementation that is using "adapted" semaphore (to be able to use semaphores not sharing common API).
AdaptedSemaphoreNamedLock(String, NamedLockFactorySupport, AdaptedSemaphoreNamedLock.AdaptedSemaphore) - Constructor for class org.eclipse.aether.named.support.AdaptedSemaphoreNamedLock
 
AdaptedSemaphoreNamedLock.AdaptedSemaphore - Interface in org.eclipse.aether.named.support
Wrapper for semaphore-like stuff, that do not share common ancestor.

C

close() - Method in interface org.eclipse.aether.named.NamedLock
Closes the lock resource.
close() - Method in class org.eclipse.aether.named.support.NamedLockSupport
 
closeLock(String) - Method in class org.eclipse.aether.named.support.NamedLockFactorySupport
 
createLock(String) - Method in class org.eclipse.aether.named.providers.FileLockNamedLockFactory
 
createLock(String) - Method in class org.eclipse.aether.named.providers.LocalReadWriteLockNamedLockFactory
 
createLock(String) - Method in class org.eclipse.aether.named.providers.LocalSemaphoreNamedLockFactory
 
createLock(String) - Method in class org.eclipse.aether.named.providers.NoopNamedLockFactory
 
createLock(String) - Method in class org.eclipse.aether.named.support.NamedLockFactorySupport
Implementations shall create and return NamedLockSupport for given name, this method must never return null.

D

destroyLock(String) - Method in class org.eclipse.aether.named.providers.FileLockNamedLockFactory
 
destroyLock(String) - Method in class org.eclipse.aether.named.support.NamedLockFactorySupport
Implementation may override this (empty) method to perform some sort of implementation specific cleanup for given lock name.
diagnosticState() - Method in class org.eclipse.aether.named.support.NamedLockSupport
Returns the diagnostic state (if collected) or empty map, never null.
doClose() - Method in class org.eclipse.aether.named.support.NamedLockSupport
 
doLockExclusively(long, TimeUnit) - Method in class org.eclipse.aether.named.support.AdaptedSemaphoreNamedLock
 
doLockExclusively(long, TimeUnit) - Method in class org.eclipse.aether.named.support.FileLockNamedLock
 
doLockExclusively(long, TimeUnit) - Method in class org.eclipse.aether.named.support.NamedLockSupport
 
doLockExclusively(long, TimeUnit) - Method in class org.eclipse.aether.named.support.ReadWriteLockNamedLock
 
doLockShared(long, TimeUnit) - Method in class org.eclipse.aether.named.support.AdaptedSemaphoreNamedLock
 
doLockShared(long, TimeUnit) - Method in class org.eclipse.aether.named.support.FileLockNamedLock
 
doLockShared(long, TimeUnit) - Method in class org.eclipse.aether.named.support.NamedLockSupport
 
doLockShared(long, TimeUnit) - Method in class org.eclipse.aether.named.support.ReadWriteLockNamedLock
 
doUnlock() - Method in class org.eclipse.aether.named.support.AdaptedSemaphoreNamedLock
 
doUnlock() - Method in class org.eclipse.aether.named.support.FileLockNamedLock
 
doUnlock() - Method in class org.eclipse.aether.named.support.NamedLockSupport
 
doUnlock() - Method in class org.eclipse.aether.named.support.ReadWriteLockNamedLock
 

F

FileLockNamedLock - Class in org.eclipse.aether.named.support
Named lock that uses FileLock.
FileLockNamedLock(String, FileChannel, NamedLockFactorySupport) - Constructor for class org.eclipse.aether.named.support.FileLockNamedLock
 
FileLockNamedLockFactory - Class in org.eclipse.aether.named.providers
Named locks factory of FileLockNamedLocks.
FileLockNamedLockFactory() - Constructor for class org.eclipse.aether.named.providers.FileLockNamedLockFactory
 

G

getLock(String) - Method in interface org.eclipse.aether.named.NamedLockFactory
Creates or reuses existing NamedLock.
getLock(String) - Method in class org.eclipse.aether.named.support.NamedLockFactorySupport
 

I

isDiagnosticEnabled() - Method in class org.eclipse.aether.named.support.NamedLockFactorySupport
Returns true if factory diagnostic collection is enabled.

L

LocalReadWriteLockNamedLockFactory - Class in org.eclipse.aether.named.providers
A JVM-local named lock factory that uses named ReentrantReadWriteLocks.
LocalReadWriteLockNamedLockFactory() - Constructor for class org.eclipse.aether.named.providers.LocalReadWriteLockNamedLockFactory
 
LocalSemaphoreNamedLockFactory - Class in org.eclipse.aether.named.providers
A JVM-local named lock factory that uses named Semaphores.
LocalSemaphoreNamedLockFactory() - Constructor for class org.eclipse.aether.named.providers.LocalSemaphoreNamedLockFactory
 
lockExclusively(long, TimeUnit) - Method in interface org.eclipse.aether.named.NamedLock
Tries to lock exclusively, may block for given time.
lockExclusively(long, TimeUnit) - Method in class org.eclipse.aether.named.support.NamedLockSupport
 
lockShared(long, TimeUnit) - Method in interface org.eclipse.aether.named.NamedLock
Tries to lock shared, may block for given time.
lockShared(long, TimeUnit) - Method in class org.eclipse.aether.named.support.NamedLockSupport
 
LockUpgradeNotSupportedException - Exception Class in org.eclipse.aether.named.support
Exception thrown when lock upgrade attempted that we do not support.
LockUpgradeNotSupportedException(NamedLockSupport) - Constructor for exception class org.eclipse.aether.named.support.LockUpgradeNotSupportedException
Constructor for case, when current thread attempts lock upgrade on given lock instance.
logger - Variable in class org.eclipse.aether.named.support.NamedLockFactorySupport
 
logger - Variable in class org.eclipse.aether.named.support.NamedLockSupport
 

N

name() - Method in interface org.eclipse.aether.named.NamedLock
Returns this instance name, never null
name() - Method in class org.eclipse.aether.named.support.NamedLockSupport
 
NAME - Static variable in class org.eclipse.aether.named.providers.FileLockNamedLockFactory
 
NAME - Static variable in class org.eclipse.aether.named.providers.LocalReadWriteLockNamedLockFactory
 
NAME - Static variable in class org.eclipse.aether.named.providers.LocalSemaphoreNamedLockFactory
 
NAME - Static variable in class org.eclipse.aether.named.providers.NoopNamedLockFactory
 
NamedLock - Interface in org.eclipse.aether.named
A named lock, functionally similar to existing JVM and other implementations.
NamedLockFactory - Interface in org.eclipse.aether.named
A factory of NamedLocks.
NamedLockFactorySupport - Class in org.eclipse.aether.named.support
Support class for NamedLockFactory implementations providing reference counting.
NamedLockFactorySupport() - Constructor for class org.eclipse.aether.named.support.NamedLockFactorySupport
 
NamedLockFactorySupport(boolean) - Constructor for class org.eclipse.aether.named.support.NamedLockFactorySupport
 
NamedLockSupport - Class in org.eclipse.aether.named.support
Support class for NamedLock implementations providing reference counting.
NamedLockSupport(String, NamedLockFactorySupport) - Constructor for class org.eclipse.aether.named.support.NamedLockSupport
 
NoopNamedLockFactory - Class in org.eclipse.aether.named.providers
A no-op lock factory, that creates no-op locks.
NoopNamedLockFactory() - Constructor for class org.eclipse.aether.named.providers.NoopNamedLockFactory
 

O

onFailure(E) - Method in interface org.eclipse.aether.named.NamedLockFactory
Method to notify factory about locking failure, to make it possible to provide more (factory specific) information about factory state when a locking operation failed.
onFailure(E) - Method in class org.eclipse.aether.named.support.NamedLockFactorySupport
 
org.eclipse.aether.named - package org.eclipse.aether.named
 
org.eclipse.aether.named.providers - package org.eclipse.aether.named.providers
 
org.eclipse.aether.named.support - package org.eclipse.aether.named.support
 

R

ReadWriteLockNamedLock - Class in org.eclipse.aether.named.support
Named lock support implementation that is using ReadWriteLock instances.
ReadWriteLockNamedLock(String, NamedLockFactorySupport, ReadWriteLock) - Constructor for class org.eclipse.aether.named.support.ReadWriteLockNamedLock
 
release(int) - Method in interface org.eclipse.aether.named.support.AdaptedSemaphoreNamedLock.AdaptedSemaphore
 
retry(int, long, Callable<R>, Predicate<Exception>, R) - Static method in class org.eclipse.aether.named.support.Retry
Retries attempting max given times the passed in operation, sleeping given sleepMills between retries.
retry(long, TimeUnit, long, Callable<R>, Predicate<Exception>, R) - Static method in class org.eclipse.aether.named.support.Retry
Retries for given amount of time (time, unit) the passed in operation, sleeping given sleepMills between retries.
Retry - Class in org.eclipse.aether.named.support
Retry helper: retries given Callable as long as it returns null (interpreted as "no answer yet") or given time passes.
Retry.DoNotRetry - Interface in org.eclipse.aether.named.support
Marker interface to apply onto exceptions to make them "never retried" when thrown.

S

shutdown() - Method in interface org.eclipse.aether.named.NamedLockFactory
Performs a clean shut down of the factory.
shutdown() - Method in class org.eclipse.aether.named.support.NamedLockFactorySupport
 

T

toString() - Method in class org.eclipse.aether.named.support.NamedLockSupport
 
tryAcquire(int, long, TimeUnit) - Method in interface org.eclipse.aether.named.support.AdaptedSemaphoreNamedLock.AdaptedSemaphore
 

U

unlock() - Method in interface org.eclipse.aether.named.NamedLock
Unlocks the lock, must be invoked by caller after one of the NamedLock.lockShared(long, TimeUnit) or NamedLock.lockExclusively(long, TimeUnit).
unlock() - Method in class org.eclipse.aether.named.support.NamedLockSupport
 
A C D F G I L N O R S T U 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form