@ApplicationScoped public class TimeoutConfigBean extends Object
Constructor and Description |
---|
TimeoutConfigBean() |
Modifier and Type | Method and Description |
---|---|
CompletionStage<Void> |
serviceBoth() |
void |
serviceUnit() |
void |
serviceValue() |
@Timeout(value=1L, unit=MILLIS) public void serviceValue() throws InterruptedException
InterruptedException
@Timeout(value=1000L, unit=MICROS) public void serviceUnit() throws InterruptedException
InterruptedException
@Timeout(value=10L, unit=MICROS) @Asynchronous public CompletionStage<Void> serviceBoth() throws InterruptedException
InterruptedException
Copyright © 2016 – 2021 Eclipse Foundation. All rights reserved.
Use is subject to license terms.