public abstract class CommandListenerAbstract extends Object implements CommandListener
Constructor and Description |
---|
CommandListenerAbstract(String name,
Priority priority)
Constructs ...
|
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()
Method description
|
static long |
getSyncOutTraffic()
Method description
|
int |
hashCode() |
void |
incSyncInTraffic()
Method description
|
void |
incSyncOutTraffic()
Method description
|
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 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 Priority getPriority()
CommandListener
getPriority
in interface CommandListener
public void getStatistics(StatisticsList list)
CommandListener
getStatistics
in interface CommandListener
list
- collection to which statistics should be appendedpublic static long getSyncInTraffic()
long
public static long getSyncOutTraffic()
long
public final void setName(String name)
CommandListener
setName
in interface CommandListener
name
- to be usedpublic void setPriority(Priority priority)
Copyright © 2018 "Tigase, Inc.". All rights reserved.