Class BasicProcessor<S,T>
java.lang.Object
org.apache.ignite.migrationtools.persistence.utils.pubsub.BasicProcessor<S,T>
- All Implemented Interfaces:
Flow.Processor<S,,T> Flow.Publisher<T>,Flow.Subscriber<S>
- Direct Known Subclasses:
AbstractSchemaColumnsProcessor,CacheDataRowProcessor,RateLimiterProcessor
Base class for building
Flow.Processor which provides a transparent layer between a single publisher and a single subscriber.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Flow.Subscriber<? super T>protected Flow.Subscription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidonSubscribe(Flow.Subscription subscription) voidsubscribe(Flow.Subscriber<? super T> subscriber) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.concurrent.Flow.Subscriber
onNext
-
Field Details
-
subscriber
-
subscription
-
-
Constructor Details
-
BasicProcessor
public BasicProcessor()
-
-
Method Details
-
subscribe
- Specified by:
subscribein interfaceFlow.Publisher<S>
-
onSubscribe
- Specified by:
onSubscribein interfaceFlow.Subscriber<S>
-
onError
- Specified by:
onErrorin interfaceFlow.Subscriber<S>
-
onComplete
public void onComplete()- Specified by:
onCompletein interfaceFlow.Subscriber<S>
-