Class LegacyCallbackSubscriber
java.lang.Object
com.dna.jopt.framework.body.event.LegacyCallbackSubscriber
The Class LegacyCallbackSubscriber. For calling the callback methods, simply they are attached to
the correspoding optimization event.
- Since:
- Sep 27, 2019
- Version:
- Sep 27, 2019
- Author:
- Jens Richter
-
Method Summary
Modifier and TypeMethodDescriptionstatic CompletableFuture<Void>
subscribe
(IOptimizationEventListener listener, OptimizationEvents events, io.reactivex.rxjava3.functions.Consumer<? super Throwable> errorConsumer) Subscribe.
-
Method Details
-
subscribe
public static CompletableFuture<Void> subscribe(IOptimizationEventListener listener, OptimizationEvents events, io.reactivex.rxjava3.functions.Consumer<? super Throwable> errorConsumer) Subscribe.- Parameters:
listener
- the listenerevents
- the eventserrorConsumer
- the error consumer- Returns:
- the completable future
-