public interface Signaler
The Signaler interface was designed to get around the problem of not being able to extend the functionality of the Object.notify and Object.notifyAll methods. In some instances is would be nice to alter the default behavior slightly, the signaler interface allows this to occur.
An object that implements the Signaler interface is used just like a typical object. But instead of using notify and notifyAll, the methods signal and signalAll should be used in their place.
Modifier and Type | Method and Description |
---|---|
void |
signal()
Provides the functionality of the notify method, but may be overridden by
the implementor to provide additional functionality.
|
void |
signalAll()
Provides the functionality of the notifyAll method, but may be overridden
by the implementor to provide additional functionality.
|
void signal()
Provides the functionality of the notify method, but may be overridden by the implementor to provide additional functionality.
Object.notify()
void signalAll()
Provides the functionality of the notifyAll method, but may be overridden by the implementor to provide additional functionality.
Object.notifyAll()
Copyright © 2015. All Rights Reserved.