Class TimerTimeoutProcessor
- java.lang.Object
-
- com.linkedin.alpini.router.impl.netty4.TimerTimeoutProcessor
-
- All Implemented Interfaces:
RouterTimeoutProcessor
,java.util.concurrent.Executor
public class TimerTimeoutProcessor extends java.lang.Object implements RouterTimeoutProcessor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.linkedin.alpini.router.api.RouterTimeoutProcessor
RouterTimeoutProcessor.TimeoutFuture
-
-
Constructor Summary
Constructors Constructor Description TimerTimeoutProcessor(io.netty.util.Timer timer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(java.lang.Runnable command)
RouterTimeoutProcessor.TimeoutFuture
schedule(java.lang.Runnable task, long scheduleDelay, java.util.concurrent.TimeUnit unit)
<T> T
unwrap(java.lang.Class<T> clazz)
-
-
-
Method Detail
-
schedule
@Nonnull public RouterTimeoutProcessor.TimeoutFuture schedule(@Nonnull java.lang.Runnable task, @Nonnegative long scheduleDelay, @Nonnull java.util.concurrent.TimeUnit unit)
- Specified by:
schedule
in interfaceRouterTimeoutProcessor
-
unwrap
@Nonnull public <T> T unwrap(@Nonnull java.lang.Class<T> clazz)
- Specified by:
unwrap
in interfaceRouterTimeoutProcessor
-
execute
public void execute(@Nonnull java.lang.Runnable command)
- Specified by:
execute
in interfacejava.util.concurrent.Executor
-
-