Klasse DelegableReentrantLock
java.lang.Object
org.eclipse.net4j.util.concurrent.NonFairReentrantLock
org.eclipse.net4j.util.concurrent.DelegableReentrantLock
- Alle implementierten Schnittstellen:
Serializable
,Lock
,IManagedContainerProvider
,INotifier
,IDeactivateable
,ILifecycle
public class DelegableReentrantLock
extends NonFairReentrantLock
implements ILifecycle, IManagedContainerProvider
- Seit:
- 3.6
- Autor:
- Eike Stepper
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenVon Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.util.lifecycle.ILifecycle
ILifecycle.DeferrableActivation
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.util.event.INotifier
INotifier.INotifier2
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal void
activate()
final void
addListener
(IListener listener) Adds a listener to this notifier.final Exception
final IManagedContainer
final LifecycleState
final IListener[]
Returns the listeners that are registered with this notifier.final boolean
Returnstrue
if one or more listeners are registered with this notifier,false
otherwise.final boolean
isActive()
protected boolean
isDelegate
(Thread thread, Thread owner) protected boolean
final void
removeListener
(IListener listener) Removes a listener from this notifier.Von Klasse geerbte Methoden org.eclipse.net4j.util.concurrent.NonFairReentrantLock
getHoldCount, getOwner, getQueuedThreads, getQueueLength, getWaitingThreads, getWaitQueueLength, hasQueuedThread, hasQueuedThreads, hasWaiters, isHeldByCurrentThread, isLocked, lock, lockInterruptibly, newCondition, toString, tryLock, tryLock, unlock
-
Konstruktordetails
-
DelegableReentrantLock
-
DelegableReentrantLock
public DelegableReentrantLock()
-
-
Methodendetails
-
getContainer
- Angegeben von:
getContainer
in SchnittstelleIManagedContainerProvider
-
activate
- Angegeben von:
activate
in SchnittstelleILifecycle
- Löst aus:
LifecycleException
-
deactivate
- Angegeben von:
deactivate
in SchnittstelleIDeactivateable
- Angegeben von:
deactivate
in SchnittstelleILifecycle
-
getLifecycleState
- Angegeben von:
getLifecycleState
in SchnittstelleILifecycle
-
isActive
public final boolean isActive()- Angegeben von:
isActive
in SchnittstelleILifecycle
-
addListener
Beschreibung aus Schnittstelle kopiert:INotifier
Adds a listener to this notifier.Depending on the implementation duplicate listeners may lead to duplicate event delivery or not. Implementors are encouraged to prevent events from being delivered more than once to the same listener,
- Angegeben von:
addListener
in SchnittstelleINotifier
-
removeListener
Beschreibung aus Schnittstelle kopiert:INotifier
Removes a listener from this notifier.- Angegeben von:
removeListener
in SchnittstelleINotifier
-
getListeners
Beschreibung aus Schnittstelle kopiert:INotifier
Returns the listeners that are registered with this notifier.Depending on the implementation duplicate listeners may be contained in the returned array.
- Angegeben von:
getListeners
in SchnittstelleINotifier
-
hasListeners
public final boolean hasListeners()Beschreibung aus Schnittstelle kopiert:INotifier
Returnstrue
if one or more listeners are registered with this notifier,false
otherwise.- Angegeben von:
hasListeners
in SchnittstelleINotifier
-
isOwner
- Setzt außer Kraft:
isOwner
in KlasseNonFairReentrantLock
-
isDelegate
-