Uses of Interface
io.helidon.common.reactive.Single
-
Packages that use Single Package Description io.helidon.common.reactive Common reactive library for Helidon projects.io.helidon.media.common Common classes for processing content with a specificMediaType.io.helidon.media.jackson.common Jackson media type support.io.helidon.media.jsonb.common JSON-B media type support.io.helidon.media.jsonp.common JSON-P media type support. -
-
Uses of Single in io.helidon.common.reactive
Methods in io.helidon.common.reactive that return Single Modifier and Type Method Description default <U> Single<U>Multi. collect(Collector<T,U> collector)default <U> Single<U>Multi. collect(Supplier<U> collectionSupplier, BiConsumer<U,T> accumulator)default Single<List<T>>Multi. collectList()default <A,R>
Single<R>Multi. collectStream(Collector<T,A,R> collector)Collects up upstream items with the help of a the callbacks of aCollector.default Single<T>Single. defaultIfEmpty(T defaultItem)Signals the default item if the upstream is empty.static <T> Single<T>Single. defer(Supplier<? extends Single<? extends T>> supplier)Call the given supplier function for each individual downstream Subscriber to return a Flow.Publisher to subscribe to.static <T> Single<T>Single. empty()Get aSingleinstance that completes immediately.static <T> Single<T>Single. error(Throwable error)Create aSingleinstance that reports the given given exception to its subscriber(s).default Single<T>Multi. first()default <U> Single<U>Single. flatMapSingle(Function<T,Single<U>> mapper)static <T> Single<T>Single. from(Flow.Publisher<T> source)Create aSingleinstance that publishes the first and only item received from the given publisher.static <T> Single<T>Single. just(T item)Create aSingleinstance that publishes the given item to its subscriber(s).default <U> Single<U>Single. map(Mapper<T,U> mapper)static <T> Single<T>Single. never()Get aSingleinstance that never completes.default Single<T>Single. onComplete(Runnable onTerminate)Executes givenRunnablewhen onComplete signal is received.default Single<T>Single. onError(Consumer<Throwable> onErrorConsumer)Executes givenRunnablewhen onError signal is received.default Single<T>Single. onErrorResume(Function<? super Throwable,? extends T> onError)Functionproviding one item to be submitted as onNext in case of onError signal is received.default Single<T>Single. onErrorResumeWith(Function<? super Throwable,? extends Single<? extends T>> onError)Resume stream from supplied publisher if onError signal is intercepted.default Single<T>Single. onTerminate(Runnable onTerminate)Executes givenRunnablewhen any of signals onComplete, onCancel or onError is received.default Single<T>Single. peek(Consumer<T> consumer)Invoke provided consumer for the item in stream.default Single<T>Multi. reduce(BiFunction<T,T,T> reducer)Combine subsequent items via a callback function and emit the final value result as a Single.default <R> Single<R>Multi. reduce(Supplier<? extends R> supplier, BiFunction<R,T,R> reducer)Combine every upstream item with an accumulator value to produce a new accumulator value and emit the final accumulator value as a Single.default Single<T>Single. switchIfEmpty(Single<T> other)Switch to the other Single if the upstream is empty.default <U> Single<T>Single. takeUntil(Flow.Publisher<U> other)Relay upstream items until the other source signals an item or completes.static Single<Long>Single. timer(long time, TimeUnit unit, ScheduledExecutorService executor)Signal 0L and complete the sequence after the given time elapsed.Methods in io.helidon.common.reactive with parameters of type Single Modifier and Type Method Description default Single<T>Single. switchIfEmpty(Single<T> other)Switch to the other Single if the upstream is empty.Method parameters in io.helidon.common.reactive with type arguments of type Single Modifier and Type Method Description static <T> Single<T>Single. defer(Supplier<? extends Single<? extends T>> supplier)Call the given supplier function for each individual downstream Subscriber to return a Flow.Publisher to subscribe to.default <U> Single<U>Single. flatMapSingle(Function<T,Single<U>> mapper)default Single<T>Single. onErrorResumeWith(Function<? super Throwable,? extends Single<? extends T>> onError)Resume stream from supplied publisher if onError signal is intercepted. -
Uses of Single in io.helidon.media.common
Methods in io.helidon.media.common that return Single Modifier and Type Method Description <U extends InputStream>
Single<U>InputStreamBodyReader. read(Flow.Publisher<DataChunk> publisher, GenericType<U> type, MessageBodyReaderContext context)<U extends T>
Single<U>MessageBodyReader. read(Flow.Publisher<DataChunk> publisher, GenericType<U> type, MessageBodyReaderContext context)Convert a HTTP payload into a Single publisher of the given type.<U extends String>
Single<U>StringBodyReader. read(Flow.Publisher<DataChunk> publisher, GenericType<U> type, MessageBodyReaderContext context)static Single<byte[]>ContentReaders. readBytes(Flow.Publisher<DataChunk> chunks)Collect theDataChunkof the given publisher into a single byte array.static Single<String>ContentReaders. readString(Flow.Publisher<DataChunk> chunks, Charset charset)static Single<String>ContentReaders. readURLEncodedString(Flow.Publisher<DataChunk> chunks, Charset charset)<T> Single<T>MessageBodyReaderContext. unmarshall(Flow.Publisher<DataChunk> payload, GenericType<T> type)Convert a given HTTP payload into a publisher by selecting a reader that accepts the specified type and current context.<T> Single<T>MessageBodyReaderContext. unmarshall(Flow.Publisher<DataChunk> payload, Class<? extends MessageBodyReader<T>> readerType, GenericType<T> type)Convert a given HTTP payload into a publisher by selecting a reader with the specified class.static Single<DataChunk>ContentWriters. writeBytes(byte[] bytes, boolean copy)static Single<DataChunk>ContentWriters. writeCharBuffer(CharBuffer buffer, Charset charset)static Single<DataChunk>ContentWriters. writeCharSequence(CharSequence cs, Charset charset)static Single<DataChunk>ContentWriters. writeStackTrace(Throwable throwable, Charset charset)Methods in io.helidon.media.common with parameters of type Single Modifier and Type Method Description <T> Flow.Publisher<DataChunk>MessageBodyWriterContext. marshall(Single<T> content, GenericType<T> type, MessageBodyWriterContext fallback)Convert a given input publisher into HTTP payload by selecting a writer that accepts the specified type and current context.<T> Flow.Publisher<DataChunk>MessageBodyWriterContext. marshall(Single<T> content, Class<? extends MessageBodyWriter<T>> writerType, GenericType<T> type, MessageBodyWriterContext fallback)Convert a given input publisher into HTTP payload by selecting a writer with the specified class.Flow.Publisher<DataChunk>ByteChannelBodyWriter. write(Single<ReadableByteChannel> content, GenericType<? extends ReadableByteChannel> type, MessageBodyWriterContext context)Flow.Publisher<DataChunk>CharSequenceBodyWriter. write(Single<CharSequence> content, GenericType<? extends CharSequence> type, MessageBodyWriterContext context)Flow.Publisher<DataChunk>FileBodyWriter. write(Single<File> content, GenericType<? extends File> type, MessageBodyWriterContext context)Flow.Publisher<DataChunk>MessageBodyWriter. write(Single<T> single, GenericType<? extends T> type, MessageBodyWriterContext context)Generate HTTP payload from the objects of the given type.Flow.Publisher<DataChunk>PathBodyWriter. write(Single<Path> content, GenericType<? extends Path> type, MessageBodyWriterContext context)Flow.Publisher<DataChunk>ThrowableBodyWriter. write(Single<Throwable> content, GenericType<? extends Throwable> type, MessageBodyWriterContext context) -
Uses of Single in io.helidon.media.jackson.common
Methods in io.helidon.media.jackson.common that return Single Modifier and Type Method Description <U> Single<U>JacksonBodyReader. read(Flow.Publisher<DataChunk> publisher, GenericType<U> type, MessageBodyReaderContext context)Methods in io.helidon.media.jackson.common with parameters of type Single Modifier and Type Method Description Flow.Publisher<DataChunk>JacksonBodyWriter. write(Single<Object> content, GenericType<? extends Object> type, MessageBodyWriterContext context) -
Uses of Single in io.helidon.media.jsonb.common
Methods in io.helidon.media.jsonb.common that return Single Modifier and Type Method Description <U> Single<U>JsonbBodyReader. read(Flow.Publisher<DataChunk> publisher, GenericType<U> type, MessageBodyReaderContext context)Methods in io.helidon.media.jsonb.common with parameters of type Single Modifier and Type Method Description Flow.Publisher<DataChunk>JsonbBodyWriter. write(Single<Object> content, GenericType<? extends Object> type, MessageBodyWriterContext context) -
Uses of Single in io.helidon.media.jsonp.common
Methods in io.helidon.media.jsonp.common that return Single Modifier and Type Method Description <U extends javax.json.JsonStructure>
Single<U>JsonpBodyReader. read(Flow.Publisher<DataChunk> publisher, GenericType<U> type, MessageBodyReaderContext context)Methods in io.helidon.media.jsonp.common with parameters of type Single Modifier and Type Method Description Flow.Publisher<DataChunk>JsonpBodyWriter. write(Single<javax.json.JsonStructure> content, GenericType<? extends javax.json.JsonStructure> type, MessageBodyWriterContext context)
-