public class ResponseCollectorTask<T> extends ResponseCollector<T>
Modifier and Type | Class and Description |
---|---|
static interface |
ResponseCollectorTask.Consumer<C> |
Modifier and Type | Field and Description |
---|---|
protected ResponseCollectorTask.Consumer<ResponseCollectorTask<T>> |
finalizer_task |
protected ResponseCollectorTask.Consumer<ResponseCollectorTask<T>> |
periodic_task |
protected java.util.concurrent.Future<?> |
runner |
protected java.lang.Runnable |
stub |
Constructor and Description |
---|
ResponseCollectorTask() |
ResponseCollectorTask(Address... members) |
ResponseCollectorTask(java.util.Collection<Address> members) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(Address member,
T data) |
boolean |
isDone() |
boolean |
retainAll(java.util.List<Address> members) |
ResponseCollectorTask<T> |
setFinalizerTask(ResponseCollectorTask.Consumer<ResponseCollectorTask<T>> r) |
ResponseCollectorTask<T> |
setPeriodicTask(ResponseCollectorTask.Consumer<ResponseCollectorTask<T>> pt) |
ResponseCollectorTask<T> |
start(TimeScheduler timer,
long initial_delay,
long interval) |
ResponseCollectorTask<T> |
stop() |
getMissing, getResults, getValidResults, hasAllResponses, isMet, numberOfValidResponses, remove, remove, reset, reset, reset, size, suspect, toString, waitForAllResponses
protected ResponseCollectorTask.Consumer<ResponseCollectorTask<T>> periodic_task
protected ResponseCollectorTask.Consumer<ResponseCollectorTask<T>> finalizer_task
protected java.util.concurrent.Future<?> runner
protected final java.lang.Runnable stub
public ResponseCollectorTask()
public ResponseCollectorTask(java.util.Collection<Address> members)
public ResponseCollectorTask(Address... members)
public ResponseCollectorTask<T> setPeriodicTask(ResponseCollectorTask.Consumer<ResponseCollectorTask<T>> pt)
public ResponseCollectorTask<T> setFinalizerTask(ResponseCollectorTask.Consumer<ResponseCollectorTask<T>> r)
public boolean isDone()
public ResponseCollectorTask<T> start(TimeScheduler timer, long initial_delay, long interval)
public ResponseCollectorTask<T> stop()
public boolean add(Address member, T data)
add
in class ResponseCollector<T>
public boolean retainAll(java.util.List<Address> members)
retainAll
in class ResponseCollector<T>
Copyright © 1998-2020 Red Hat. All Rights Reserved.