|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.TimerTask
dasher.net.NetDashGC
public class NetDashGC
This task is scheduled to run every 60 seconds to identify and terminate idle NetDasher sessions.
The scheduling is set up by NetDasherListener.
Each time the thread is run, the following is checked against each Dasher in the Map supplied by NetDasherListener.
| Field Summary | |
|---|---|
protected java.util.concurrent.ConcurrentHashMap<java.lang.Integer,NetDashConnectionHandler> |
Dashers
Map which will be checked for idle Dashers when this thread is run |
| Constructor Summary | |
|---|---|
NetDashGC(java.util.concurrent.ConcurrentHashMap<java.lang.Integer,NetDashConnectionHandler> Dashs)
Creates a new GC thread attached to a given Map of Dashers. |
|
| Method Summary | |
|---|---|
void |
run()
Checks for idle dashers; see the class summary for details. |
| Methods inherited from class java.util.TimerTask |
|---|
cancel, scheduledExecutionTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.concurrent.ConcurrentHashMap<java.lang.Integer,NetDashConnectionHandler> Dashers
| Constructor Detail |
|---|
public NetDashGC(java.util.concurrent.ConcurrentHashMap<java.lang.Integer,NetDashConnectionHandler> Dashs)
Dashs - Map to check for idle Dashers when run| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablerun in class java.util.TimerTask
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||