org.apache.flume.util
Class RandomOrderSelector<T>
java.lang.Object
org.apache.flume.util.OrderSelector<T>
org.apache.flume.util.RandomOrderSelector<T>
public class RandomOrderSelector<T>
- extends OrderSelector<T>
An implementation of OrderSelector which returns objects in random order.
Also supports backoff.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RandomOrderSelector
public RandomOrderSelector(boolean shouldBackOff)
createIterator
public Iterator<T> createIterator()
- Specified by:
createIterator
in class OrderSelector<T>
- Returns:
- - list of algorithmically ordered active sinks
Copyright © 2009-2013 Apache Software Foundation. All Rights Reserved.