object SynchronousMappedStreams
- Alphabetic
- By Inheritance
- SynchronousMappedStreams
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- def contramap[A, B](subscriber: Subscriber[B], f: (A) => B): Subscriber[A]
Contramaps a subscriber using a synchronous function.
Contramaps a subscriber using a synchronous function.
This is useful in situations where you want to guarantee that messages that you produce always reach passed to the subscriber are always handled, but can't guarantee that the subscriber being contramapped will always handle them. For example, a subscriber that consumes Netty
ByteBuf
can't subscribe directly to an Pekko streams publisher since Pekko streams may drop the messages its publishing without giving any opportunity to release theByteBuf
, this can be used to to convert some other immutable message to aByteBuf
for consumption by the Netty subscriber. - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def map[A, B](publisher: Publisher[A], f: (A) => B): Publisher[B]
Maps a publisher using a synchronous function.
Maps a publisher using a synchronous function.
This is useful in situations where you want to guarantee that messages produced by the publisher are always handled, but can't guarantee that the subscriber passed to it will always handle them. For example, a publisher that produces Netty
ByteBuf
can't be fed directly into an Pekko streams subscriber since Pekko streams may drop the message without giving any opportunity to release theByteBuf
, this can be used to consume theByteBuf
and then release it. - final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def transform[A1, B1, A2, B2](processor: Processor[B1, A2], f: (A1) => B1, g: (A2) => B2): Processor[A1, B2]
Does a map and contramap on the processor.
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)