Class DelayedMonoPublisher<T>
- java.lang.Object
-
- org.apache.camel.component.reactive.streams.engine.DelayedMonoPublisher<T>
-
- All Implemented Interfaces:
org.reactivestreams.Publisher<T>
public class DelayedMonoPublisher<T> extends Object implements org.reactivestreams.Publisher<T>
Publish a single item as soon as it's available.
-
-
Constructor Summary
Constructors Constructor Description DelayedMonoPublisher(ExecutorService workerPool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getData()
Throwable
getException()
void
setData(T data)
void
setException(Throwable exception)
void
subscribe(org.reactivestreams.Subscriber<? super T> subscriber)
-
-
-
Constructor Detail
-
DelayedMonoPublisher
public DelayedMonoPublisher(ExecutorService workerPool)
-
-
Method Detail
-
subscribe
public void subscribe(org.reactivestreams.Subscriber<? super T> subscriber)
- Specified by:
subscribe
in interfaceorg.reactivestreams.Publisher<T>
-
getData
public T getData()
-
setData
public void setData(T data)
-
getException
public Throwable getException()
-
setException
public void setException(Throwable exception)
-
-