@RequestScoped public class AsyncCancellationClient extends Object
Constructor and Description |
---|
AsyncCancellationClient() |
Modifier and Type | Method and Description |
---|---|
int |
getServiceAsyncRetryAttempts() |
Future<?> |
serviceAsync(Barrier barrier,
AtomicBoolean wasInterrupted) |
Future<?> |
serviceAsyncBulkhead(Barrier barrier) |
Future<?> |
serviceAsyncRetry(Barrier barrier) |
@Asynchronous public Future<?> serviceAsync(Barrier barrier, AtomicBoolean wasInterrupted)
@Asynchronous @Retry(maxRetries=5, delay=0L, jitter=0L) public Future<?> serviceAsyncRetry(Barrier barrier) throws InterruptedException
InterruptedException
public int getServiceAsyncRetryAttempts()
@Asynchronous @Bulkhead(value=1, waitingTaskQueue=1) public Future<?> serviceAsyncBulkhead(Barrier barrier)
Copyright © 2016 – 2021 Eclipse Foundation. All rights reserved.
Use is subject to license terms.