abstract class ActionRouter[A <: Action] extends AnyRef
- Alphabetic
- By Inheritance
- ActionRouter
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ActionRouter(action: A)
Abstract Value Members
- abstract def handleStreamed(commandName: String, stream: Source[MessageEnvelope[Any], NotUsed]): Source[Effect[_], NotUsed]
Handle a full duplex streamed in call.
Handle a full duplex streamed in call.
- commandName
The name of the command this call is for.
- stream
The stream of messages to handle.
- returns
The stream of messages to return.
- abstract def handleStreamedIn(commandName: String, stream: Source[MessageEnvelope[Any], NotUsed]): Effect[_]
Handle a streamed in call.
Handle a streamed in call.
- commandName
The name of the command this call is for.
- stream
The stream of messages to handle.
- returns
A future of the message to return.
- abstract def handleStreamedOut(commandName: String, message: MessageEnvelope[Any]): Source[Effect[_], NotUsed]
Handle a streamed out call call.
Handle a streamed out call call.
- commandName
The name of the command this call is for.
- message
The message envelope of the message.
- returns
The stream of messages to return.
- abstract def handleUnary(commandName: String, message: MessageEnvelope[Any]): Effect[_]
Handle a unary call.
Handle a unary call.
- commandName
The name of the command this call is for.
- message
The message envelope of the message.
- returns
A future of the message to return.
- Annotations
- @throws(scala.this.throws.<init>$default$1[Throwable])
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from ActionRouter[A] toany2stringadd[ActionRouter[A]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (ActionRouter[A], B)
- Implicit
- This member is added by an implicit conversion from ActionRouter[A] toArrowAssoc[ActionRouter[A]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val action: A
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def ensuring(cond: (ActionRouter[A]) => Boolean, msg: => Any): ActionRouter[A]
- Implicit
- This member is added by an implicit conversion from ActionRouter[A] toEnsuring[ActionRouter[A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (ActionRouter[A]) => Boolean): ActionRouter[A]
- Implicit
- This member is added by an implicit conversion from ActionRouter[A] toEnsuring[ActionRouter[A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): ActionRouter[A]
- Implicit
- This member is added by an implicit conversion from ActionRouter[A] toEnsuring[ActionRouter[A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): ActionRouter[A]
- Implicit
- This member is added by an implicit conversion from ActionRouter[A] toEnsuring[ActionRouter[A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- 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
- @native()
- final def handleStreamed(commandName: String, stream: Source[MessageEnvelope[Any], NotUsed], context: ActionContext): Source[Effect[_], NotUsed]
Handle a full duplex streamed in call.
Handle a full duplex streamed in call.
- commandName
The name of the command this call is for.
- stream
The stream of messages to handle.
- context
The action context.
- returns
The stream of messages to return.
- final def handleStreamedIn(commandName: String, stream: Source[MessageEnvelope[Any], NotUsed], context: ActionContext): Effect[_]
Handle a streamed in call.
Handle a streamed in call.
- commandName
The name of the command this call is for.
- stream
The stream of messages to handle.
- context
The action context.
- returns
A future of the message to return.
- final def handleStreamedOut(commandName: String, message: MessageEnvelope[Any], context: ActionContext): Source[Effect[_], NotUsed]
Handle a streamed out call call.
Handle a streamed out call call.
- commandName
The name of the command this call is for.
- message
The message envelope of the message.
- context
The action context.
- returns
The stream of messages to return.
- final def handleUnary(commandName: String, message: MessageEnvelope[Any], context: ActionContext): Effect[_]
Handle a unary call.
Handle a unary call.
- commandName
The name of the command this call is for.
- message
The message envelope of the message.
- context
The action context.
- returns
A future of the message to return.
- Annotations
- @throws(scala.this.throws.<init>$default$1[Throwable])
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from ActionRouter[A] toStringFormat[ActionRouter[A]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- def →[B](y: B): (ActionRouter[A], B)
- Implicit
- This member is added by an implicit conversion from ActionRouter[A] toArrowAssoc[ActionRouter[A]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.