add constructor

This commit is contained in:
Zlatin Balevsky
2019-06-25 07:53:24 +01:00
parent 2614cfbe5f
commit 26207ffd1b

View File

@@ -11,8 +11,9 @@ class Host {
int failures,successes
long lastAttempt
public Host(Destination destination) {
public Host(Destination destination, int clearInterval) {
this.destination = destination
this.clearInterval = clearInterval
}
synchronized void onConnect() {