public class ChannelTimeoutTask
extends java.util.TimerTask
Constructor and Description |
---|
ChannelTimeoutTask(java.util.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.
|
ChannelTimeoutTask(java.util.Timer timer)
timer
- the timer associated with this taskpublic void run()
run
in interface java.lang.Runnable
run
in class java.util.TimerTask
public void register(NamedChannelWithTimeout channel)
channel
- the channel being registered.Copyright (c) 2004-2012 Oracle. All rights reserved.