aboutsummaryrefslogtreecommitdiff
path: root/src/WaiterClient.java
diff options
context:
space:
mode:
authorjestin2012-04-26 15:26:33 +0000
committerjestin2012-04-26 15:26:33 +0000
commitac8c6c0d9bb921166697e9b13009f9ff83ba9716 (patch)
tree1661b2885aa4d4be2f3cf26deda479641d6f6630 /src/WaiterClient.java
parent934dfab1b2e6571f241facfcadc733d25a411024 (diff)
downloadivy-java-ac8c6c0d9bb921166697e9b13009f9ff83ba9716.zip
ivy-java-ac8c6c0d9bb921166697e9b13009f9ff83ba9716.tar.gz
ivy-java-ac8c6c0d9bb921166697e9b13009f9ff83ba9716.tar.bz2
ivy-java-ac8c6c0d9bb921166697e9b13009f9ff83ba9716.tar.xz
Goes to a set of synchronized collections (Map, HashMap, ...) to try and avoid
multithreaded issues ...
Diffstat (limited to 'src/WaiterClient.java')
-rw-r--r--src/WaiterClient.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/WaiterClient.java b/src/WaiterClient.java
index 33196f2..70c3f81 100644
--- a/src/WaiterClient.java
+++ b/src/WaiterClient.java
@@ -8,7 +8,7 @@
*/
package fr.dgac.ivy ;
-import java.util.Hashtable;
+import java.util.Map;
class WaiterClient extends IvyApplicationAdapter implements Runnable {
private static final int INCREMENT = 100;
@@ -17,9 +17,9 @@ class WaiterClient extends IvyApplicationAdapter implements Runnable {
private boolean forever=false;
private Thread t;
String name;
- private Hashtable <Integer,IvyClient>clients ;
+ private Map <Integer,IvyClient>clients ;
- WaiterClient(String n,int timeout,Hashtable <Integer,IvyClient>clients) {
+ WaiterClient(String n,int timeout,Map <Integer,IvyClient>clients) {
this.timeout=timeout;
this.clients=clients;
name=n;