EXPERIMENTAL Constructs an empty UnicastSubject instance with a capacity hint.
EXPERIMENTAL Constructs an empty UnicastSubject instance with a capacity hint.
The capacity hint determines the internal queue's island size: the larger it is the less frequent allocation will happen if there is no subscriber or the subscriber hasn't caught up.
the input and output value type
the capacity hint for the internal queue
the created UnicastSubject instance
EXPERIMENTAL Constructs an empty UnicastSubject instance with the default capacity hint of 16 elements.
EXPERIMENTAL Constructs an empty UnicastSubject instance with the default capacity hint of 16 elements.
the input and output value type
the created UnicastSubject instance
EXPERIMENTAL A
Subjectvariant which buffers events until a singleSubscriberarrives and replays them to it and potentially switches to direct delivery once theSubscribercaught up and requested an unlimited amount. In this case, the buffered values are no longer retained. If theSubscriberrequests a limited amount, queueing is involved and only those values are retained which weren't requested by theSubscriberat that time.