Flux or Mono
semantics. These standalone sinks expose tryEmit methods that return an EmitResult enum,
allowing to atomically fail in case the attempted signal is inconsistent with the spec and/or the state of the sink.
This class exposes a collection of (Sinks. builders and Sinks. factories. Unless constructed through the
unsafe() spec, these sinks are thread safe in the sense that they will detect concurrent access and fail fast on one of
the attempts. unsafe() sinks on the other hand are expected to be externally synchronized (typically by being called from
within a Reactive Streams-compliant context, like a Subscriber or an operator, which means it is ok to remove the overhead
of detecting concurrent access from the sink itself).
| Modifier and Type | Class and Description |
|---|---|
| public static class | Sinks.EmissionException
An exception representing a |
| public static interface | Sinks.EmitFailureHandler
A handler supporting the emit API (eg. |
| public static enum | Sinks.EmitResult
Represents the immediate result of an emit attempt (eg. |
| public static interface | Sinks.Empty<
a generic type for the T>Mono view, allowing compositionA base interface for standalone |
| public static interface | |
| public static interface | Sinks.ManySpec
Provides |
| public static interface | Sinks.ManyWithUpstream<
the type of data emitted by the sink T>A |
| public static interface | Sinks.ManyWithUpstreamUnsafeSpec
Instead of |
| public static interface | Sinks.MulticastReplaySpec
Provides multicast with history/replay capacity : 1 sink, N |
| public static interface | Sinks.MulticastSpec
Provides multicast : 1 sink, N |
| public static interface | |
| pack-priv static class | |
| public static interface | Sinks.RootSpec
Provides a choice of |
| public static interface | Sinks.UnicastSpec
Provides unicast: 1 sink, 1 |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static <T> Sinks. | Returns: a newSinks.A |
| public static Sinks. | Returns: ManySpecHelp building |
| public static <T> Sinks. | |
| public static Sinks. |