public class TimeoutCheckerImpl<T extends TimeoutEndpoint> extends Object implements TimeoutChecker<T>
Constructor and Description |
---|
TimeoutCheckerImpl() |
TimeoutCheckerImpl(long delay) |
public TimeoutCheckerImpl()
public TimeoutCheckerImpl(long delay)
public void addTask(T task)
TimeoutChecker
addTask
in interface TimeoutChecker<T extends TimeoutEndpoint>
task
- taskpublic void clear()
TimeoutChecker
clear
in interface TimeoutChecker<T extends TimeoutEndpoint>
public boolean isEmpty()
TimeoutChecker
isEmpty
in interface TimeoutChecker<T extends TimeoutEndpoint>
public boolean isRun()
TimeoutChecker
isRun
in interface TimeoutChecker<T extends TimeoutEndpoint>
public List<T> getTasks()
TimeoutChecker
getTasks
in interface TimeoutChecker<T extends TimeoutEndpoint>
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2024. All rights reserved.