public interface LoaderExecutor extends AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
close()
Waits for all queued and running Loader task to complete, then cleans up resources.
|
void |
execute(Loader loader)
Queues
Loader task implemented by users for execution. |
void |
execute(String identity,
Loader loader)
Same as
execute(Loader) , but allows specifing an identity. |
void execute(Loader loader)
Loader
task implemented by users for execution. The load Task may not have
completed when the method returns. If the queue is full, this method will block.void execute(String identity, Loader loader)
execute(Loader)
, but allows specifing an identity. The identity is used in
metrics and trace logging. When an identity is not supplied, the class name is used. In the
case of lambdas the class name may not be the same in different processes.void close()
close
in interface AutoCloseable
Copyright © 2016–2018 The Apache Software Foundation. All rights reserved.