Class DelegableReentrantLock

    • Constructor Detail

      • DelegableReentrantLock

        public DelegableReentrantLock​(IManagedContainer container)
      • DelegableReentrantLock

        public DelegableReentrantLock()
    • Method Detail

      • isActive

        public final boolean isActive()
        Specified by:
        isActive in interface ILifecycle
      • addListener

        public final void addListener​(IListener listener)
        Description copied from interface: 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,

        Specified by:
        addListener in interface INotifier
      • removeListener

        public final void removeListener​(IListener listener)
        Description copied from interface: INotifier
        Removes a listener from this notifier.
        Specified by:
        removeListener in interface INotifier
      • getListeners

        public final IListener[] getListeners()
        Description copied from interface: INotifier
        Returns the listeners that are registered with this notifier.

        Depending on the implementation duplicate listeners may be contained in the returned array.

        Specified by:
        getListeners in interface INotifier
      • hasListeners

        public final boolean hasListeners()
        Description copied from interface: INotifier
        Returns true if one or more listeners are registered with this notifier, false otherwise.
        Specified by:
        hasListeners in interface INotifier
      • isOwner

        protected boolean isOwner​(java.lang.Thread thread,
                                  java.lang.Thread owner)
        Overrides:
        isOwner in class NonFairReentrantLock
      • isDelegate

        protected boolean isDelegate​(java.lang.Thread thread,
                                     java.lang.Thread owner)