public abstract class ModificationListenerAdapter extends Object implements ModificationListener
| Modifier and Type | Field and Description |
|---|---|
static int |
defaultPriority
the default priority.
|
| Constructor and Description |
|---|
ModificationListenerAdapter()
Creates a listener for any modification.
|
ModificationListenerAdapter(String... names)
Creates a listener for the given modification names.
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getNames()
Gets the names to listen to.
|
int |
getPriority()
Gets the execution priority.
Determines the order of execution. |
long |
getTimeDelay()
Gets the optional delay to fire the event.
Allows to collect events for multiple names within an interval. If both timeFrame and timeDelay are given, the delay is treated as an offset to the frame. |
long |
getTimeFrame()
Gets the optional execution time frame in milliseconds.
If given, the listener will be executed at a random time within the time frame. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdataChangedpublic ModificationListenerAdapter(String... names)
names - the names, null if any modificationpublic ModificationListenerAdapter()
public String[] getNames()
ModificationListenergetNames in interface ModificationListenerpublic int getPriority()
ModificationListenergetPriority in interface ModificationListenerpublic long getTimeFrame()
ModificationListenergetTimeFrame in interface ModificationListenerpublic long getTimeDelay()
ModificationListenergetTimeDelay in interface ModificationListenerTentackle - distributed, domain- and model-driven