Class Tracker
java.lang.Object
java.lang.Thread
com.openclassrooms.tourguide.tracker.Tracker
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ScheduledExecutorService
private boolean
private final TourGuideService
private static final long
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Assures to shut down the Tracker threadvoid
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Field Details
-
trackingPollingInterval
private static final long trackingPollingInterval -
executorService
-
tourGuideService
-
stop
private boolean stop
-
-
Constructor Details
-
Tracker
-
-
Method Details
-
stopTracking
public void stopTracking()Assures to shut down the Tracker thread -
trackUsers
public void trackUsers()
-