public class ChannelTimeoutTask extends TimerTask
| Constructor and Description |
|---|
ChannelTimeoutTask(Timer timer)
Creates and schedules the timer task.
|
| Modifier and Type | Method and Description |
|---|---|
void |
register(NamedChannelWithTimeout channel)
Registers a channel so that the timer can make periodic calls to
isActive().
|
void |
run()
Runs once a second checking to see if a channel is still active.
|
cancel, scheduledExecutionTimepublic ChannelTimeoutTask(Timer timer)
timer - the timer associated with this taskpublic void run()
public void register(NamedChannelWithTimeout channel)
channel - the channel being registered.Copyright © 2024. All rights reserved.