Skip navigation links
A B G I M N R S W 

A

accept(E) - Method in class net.sf.javagimmicks.concurrent.BlockingObjectContainer
 

B

BlockingObjectContainer<E> - Class in net.sf.javagimmicks.concurrent
This class serves as a container that allows (de-)registration of objects of the specified type and provides blocking getter methods for them.
BlockingObjectContainer(boolean) - Constructor for class net.sf.javagimmicks.concurrent.BlockingObjectContainer
Creates a new instance with given setting for overwriting an existing instance
BlockingObjectContainer() - Constructor for class net.sf.javagimmicks.concurrent.BlockingObjectContainer
Creates a new instance disallowing overwriting of an existing instance
BlockingSingletonRegistry - Class in net.sf.javagimmicks.concurrent
This class serves as a registry that allows (de-)registration of objects following the singleton pattern and provides blocking getter methods for them.
BlockingSingletonRegistry() - Constructor for class net.sf.javagimmicks.concurrent.BlockingSingletonRegistry
 

G

get() - Method in class net.sf.javagimmicks.concurrent.BlockingObjectContainer
Retrieves the instance waiting uninterruptibly until it is registered (i.e. the waiting Thread will NOT react to Thread.interrupt() calls) Attention: this call blocks FOREVER - so you REALLY should take care that the requested instance is finally registered
get(long, TimeUnit) - Method in class net.sf.javagimmicks.concurrent.BlockingObjectContainer
Retrieves the registered instance waiting interruptibly (i.e. the waiting Thread will react to Thread.interrupt() calls) until it is registered or the given timeout has elapsed
get(Class<T>) - Method in class net.sf.javagimmicks.concurrent.BlockingSingletonRegistry
Retrieves the singleton instance of the given class waiting uninterruptibly until it is registered (i.e. the waiting Thread will NOT react to Thread.interrupt() calls) Attention: this call blocks FOREVER - so you REALLY should take care that the requested instance is finally registered
get(Class<T>, long, TimeUnit) - Method in class net.sf.javagimmicks.concurrent.BlockingSingletonRegistry
Retrieves the singleton instance of the given class waiting interruptibly (i.e. the waiting Thread will react to Thread.interrupt() calls) until it is registered or the given timeout has elapsed
get() - Method in class net.sf.javagimmicks.concurrent.locks.MultiLockProviderFactory
 
getDefault() - Static method in class net.sf.javagimmicks.concurrent.BlockingSingletonRegistry
Returns a static default (singleton) instance of the BlockingSingletonRegistry
getHashBasedInstance() - Static method in class net.sf.javagimmicks.concurrent.locks.MultiLockProviderFactory
Returns the hash-based MultiLockProviderFactory instance which manages resource identifiers using HashMaps.
getInterruptibly() - Method in class net.sf.javagimmicks.concurrent.BlockingObjectContainer
Retrieves the registered instance waiting interruptibly until it is registered (i.e. the waiting Thread will react to Thread.interrupt() calls) Attention: this call block FOREVER (if not interrupted) - so you REALLY should take care that the requested instance is finally registered
getInterruptibly(Class<T>) - Method in class net.sf.javagimmicks.concurrent.BlockingSingletonRegistry
Retrieves the singleton instance of the given class waiting interruptibly until it is registered (i.e. the waiting Thread will react to Thread.interrupt() calls) Attention: this call block FOREVER (if not interrupted) - so you REALLY should take care that the requested instance is finally registered
getNoWait() - Method in class net.sf.javagimmicks.concurrent.BlockingObjectContainer
Retrieves the instance if currently registered without potentially waiting for it (i.e. the call will always return immediately)
getNoWait(Class<T>) - Method in class net.sf.javagimmicks.concurrent.BlockingSingletonRegistry
Retrieves the singleton instance of the given class if currently registered without potentially waiting for it (i.e. the call will always return immediately)
getResourceIds() - Method in interface net.sf.javagimmicks.concurrent.locks.MultiLock
Returns the resource identifiers with which this instance is associated.
getResourceIds() - Method in interface net.sf.javagimmicks.concurrent.locks.MultiReadWriteLock
Returns the resource identifiers with which this instance is associated.
getTreeBasedInstance() - Static method in class net.sf.javagimmicks.concurrent.locks.MultiLockProviderFactory
Returns the tree-based MultiLockProviderFactory instance which manages resource identifiers using TreeMaps.

I

isAllowOverwrite() - Method in class net.sf.javagimmicks.concurrent.BlockingObjectContainer
 
isLockedByThisThread() - Method in interface net.sf.javagimmicks.concurrent.locks.MultiLock
Returns if the current Thread holds this MultiLock.

M

MultiLock<K> - Interface in net.sf.javagimmicks.concurrent.locks
An extension of Lock that allows atomic locking on any number of resources (which can be identified by resource identifiers).
MultiLockProvider<K> - Interface in net.sf.javagimmicks.concurrent.locks
This is the entry point to the MultiLock API - it creates and manages MultiReadWriteLock instances and the internal resource identifiers used to handle for acquisition and release management.
MultiLockProviderFactory<K> - Class in net.sf.javagimmicks.concurrent.locks
Serves as central Supplier for MultiLockProvider instances.
MultiReadWriteLock<K> - Interface in net.sf.javagimmicks.concurrent.locks
An extension of ReadWriteLock that allows atomic locking on any number of resources (which can be identified by resource identifiers).

N

net.sf.javagimmicks.concurrent - package net.sf.javagimmicks.concurrent
Contains some basic utilities for multi-threaded development.
net.sf.javagimmicks.concurrent.locks - package net.sf.javagimmicks.concurrent.locks
Provides an extension to java.util.concurrent.locks for creating atomic Locks over multiple resources.
newLock(Iterable<K>) - Method in interface net.sf.javagimmicks.concurrent.locks.MultiLockProvider
Creates a new MultiReadWriteLock that is associated with the given resource identifiers.
newLock(K...) - Method in interface net.sf.javagimmicks.concurrent.locks.MultiLockProvider
Creates a new MultiReadWriteLock that is associated with the given resource identifiers.

R

readLock() - Method in interface net.sf.javagimmicks.concurrent.locks.MultiReadWriteLock
Returns a read-only MultiLock that is associated with the resource identifiers with which this instance is associated.
remove() - Method in class net.sf.javagimmicks.concurrent.BlockingObjectContainer
 
remove(Class<T>) - Method in class net.sf.javagimmicks.concurrent.BlockingSingletonRegistry
Removes the singleton of the given class from the registry
remove(T) - Method in class net.sf.javagimmicks.concurrent.BlockingSingletonRegistry
Remove the given singleton instance from the registry

S

set(T) - Method in class net.sf.javagimmicks.concurrent.BlockingSingletonRegistry
Registers a new singleton instance in the registry

W

writeLock() - Method in interface net.sf.javagimmicks.concurrent.locks.MultiReadWriteLock
Returns a write-access MultiLock that is associated with the resource identifiers with which this instance is associated.
A B G I M N R S W 
Skip navigation links

Copyright © 2017. All rights reserved.