public abstract class CommandListenerAbstract extends Object implements CommandListener
Constructor and Description |
---|
CommandListenerAbstract(String name,
Priority priority) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(CommandListener cl) |
boolean |
equals(Object cl) |
String |
getName()
Method allows retrieval name of the particular command
|
Priority |
getPriority()
Method returns priority of particular command which should be used to assign proper priority for processing of
this command
|
void |
getStatistics(StatisticsList list)
Method allows retrieval possible statistics for particular command
|
static long |
getSyncInTraffic() |
static long |
getSyncOutTraffic() |
int |
hashCode() |
void |
incSyncInTraffic() |
void |
incSyncOutTraffic() |
void |
setName(String name)
Method allows setting name of the command
|
void |
setPriority(Priority priority) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
executeCommand
public static long getSyncInTraffic()
public static long getSyncOutTraffic()
public int compareTo(CommandListener cl)
compareTo
in interface Comparable<CommandListener>
public void incSyncInTraffic()
public void incSyncOutTraffic()
public String getName()
CommandListener
getName
in interface CommandListener
String
name of the commandpublic final void setName(String name)
CommandListener
setName
in interface CommandListener
name
- to be usedpublic Priority getPriority()
CommandListener
getPriority
in interface CommandListener
public void setPriority(Priority priority)
public void getStatistics(StatisticsList list)
CommandListener
getStatistics
in interface CommandListener
list
- collection to which statistics should be appendedCopyright © 2004–2019 "Tigase, Inc.". All rights reserved.