|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.scheisseichfindemalkeinen.queue.QueueCounter
public class QueueCounter
This class is a counter for a domain. The counter stores the count of connections which are open to a domain. This is needed for the restrictions.
Restriction,
QueueData| Constructor Summary | |
|---|---|
QueueCounter(java.lang.String domain)
Constructor |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object o)
|
boolean |
equals(java.lang.Object obj)
|
int |
getCount()
Returns the count of simultanious downloads for this domain |
java.lang.String |
getDomain()
Returns the domain There is no Set-Method for Domain because, the domain should not change |
void |
setCount(int count)
Sets the count of simultanious downloads for this domain |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueueCounter(java.lang.String domain)
domain - Domain| Method Detail |
|---|
public java.lang.String getDomain()
public int getCount()
public void setCount(int count)
count - Countpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||