public class OnlyLatestExecutor<K> extends Object
Constructor and Description |
---|
OnlyLatestExecutor(Executor exec) |
Modifier and Type | Method and Description |
---|---|
void |
execute(K key,
Runnable r)
Run something in the future, but replace it with the latest if it is taking too long.
|
Copyright © 2023 The Apache Software Foundation. All rights reserved.