public class StreamingTimeout
extends java.lang.Object
TimeoutException when streaming is timed out. During schedule execution
if there is an activity the TimeoutException will not be raised, instead the idle time check is again
scheduled to check in the next window.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
STREAMING_TIMEOUT_MESSAGE |
| Constructor and Description |
|---|
StreamingTimeout(java.util.concurrent.ScheduledExecutorService scheduler,
long streamingTimeout,
io.netty.channel.Channel channel,
com.linkedin.util.clock.Clock clock)
Creates a new instance of
StreamingTimeout. |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
void |
refreshLastActiveTime() |
public static final java.lang.String STREAMING_TIMEOUT_MESSAGE
public StreamingTimeout(java.util.concurrent.ScheduledExecutorService scheduler,
long streamingTimeout,
io.netty.channel.Channel channel,
com.linkedin.util.clock.Clock clock)
StreamingTimeout.scheduler - a scheduler executor service to check the streaming timeoutstreamingTimeout - The streaming timeout in millisecondschannel - The Channel on which the Timeout exception will be raisedclock - Clock to get current time