Class AdminApiFuture.SimpleAdminApiFuture<K,V>
java.lang.Object
org.apache.kafka.clients.admin.internals.AdminApiFuture.SimpleAdminApiFuture<K,V>
- All Implemented Interfaces:
AdminApiFuture<K,V>
- Enclosing interface:
AdminApiFuture<K,V>
public static class AdminApiFuture.SimpleAdminApiFuture<K,V>
extends Object
implements AdminApiFuture<K,V>
This class can be used when the set of keys is known ahead of time.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.kafka.clients.admin.internals.AdminApiFuture
AdminApiFuture.SimpleAdminApiFuture<K,V> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.kafka.clients.admin.internals.AdminApiFuture
completeLookup, completeLookupExceptionally
-
Constructor Details
-
SimpleAdminApiFuture
-
-
Method Details
-
lookupKeys
Description copied from interface:AdminApiFutureThe initial set of lookup keys. Although this will usually match the fulfillment keys, it does not necessarily have to. For example, in the case ofAllBrokersStrategy.AllBrokersFuture, we use the lookup phase in order to discover the set of keys that will be searched during the fulfillment phase.- Specified by:
lookupKeysin interfaceAdminApiFuture<K,V> - Returns:
- non-empty set of initial lookup keys
-
complete
Description copied from interface:AdminApiFutureComplete the futures associated with the given keys.- Specified by:
completein interfaceAdminApiFuture<K,V> - Parameters:
values- the completed keys with their respective values
-
completeExceptionally
Description copied from interface:AdminApiFutureComplete the futures associated with the given keys exceptionally.- Specified by:
completeExceptionallyin interfaceAdminApiFuture<K,V> - Parameters:
errors- the failed keys with their respective errors
-
all
-
get
-