public interface LightJob
JetInstance.newLightJob(Pipeline).| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Makes a request to cancel this job and returns.
|
CompletableFuture<Void> |
getFuture()
Gets the future associated with the job.
|
long |
getId()
Returns the ID of this job.
|
default String |
getIdString()
Returns the string representation of this job's ID.
|
default void |
join()
Waits for the job to complete and throws an exception if the job
completes with an error.
|
long getId()
@Nonnull default String getIdString()
default void join()
Shorthand for job.getFuture().join().
CancellationException - if the job was cancelled@Nonnull CompletableFuture<Void> getFuture()
cancel() method
should be used.IllegalStateException - if the job has not started yet.void cancel()
After cancellation, join() will throw a CancellationException.
Copyright © 2021 Hazelcast, Inc.. All rights reserved.