Package it.polimi.ingsw.utils
Class Pinger
- java.lang.Object
-
- it.polimi.ingsw.utils.Observable<String>
-
- it.polimi.ingsw.utils.Pinger
-
- All Implemented Interfaces:
Runnable
public class Pinger extends Observable<String> implements Runnable
Pinger Class, used to notify a observer a ping every 10s
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getStatus()
Get Pinger Statusvoid
run()
Run Pinger, ping the target observer each 10svoid
stop()
Stop the ping-
Methods inherited from class it.polimi.ingsw.utils.Observable
addObservers, addObservers, notify, notify
-
-