public class Times<S> extends Object implements SubscriptionMode<S,List<S>>
| Constructor and Description |
|---|
Times(int count) |
| Modifier and Type | Method and Description |
|---|---|
List<S> |
block(Future<List<S>> future,
long timeout,
TimeUnit timeoutUnit) |
List<S> |
collect(List<S> results) |
boolean |
isDone(int received) |
boolean |
isSuccess(int received) |
boolean |
requiresTimeout() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitatLeast, atLeastOnce, atMost, exactlyOnce, never, timespublic boolean requiresTimeout()
requiresTimeout in interface SubscriptionMode<S,List<S>>public List<S> block(Future<List<S>> future, long timeout, TimeUnit timeoutUnit) throws InterruptedException, ExecutionException, TimeoutException
block in interface SubscriptionMode<S,List<S>>InterruptedExceptionExecutionExceptionTimeoutExceptionpublic boolean isDone(int received)
isDone in interface SubscriptionMode<S,List<S>>public boolean isSuccess(int received)
isSuccess in interface SubscriptionMode<S,List<S>>public List<S> collect(List<S> results)
collect in interface SubscriptionMode<S,List<S>>Copyright © 2015–2016 Zalando SE. All rights reserved.