java.lang.Object
org.elasticsearch.common.util.concurrent.RunOnce
- All Implemented Interfaces:
Runnable
Runnable that prevents running its delegate more than once.
Crucially, this drops the reference to the provided delegate as soon as it executes, allowing it and its dependencies to be GCd even
though the small RunOnce wrapper might remain reachable in a collection of pending-execution callbacks somewhere.
-
Constructor Summary
Constructors -
Method Summary