RpcServer

liewhite.rpc.RpcServer
See theRpcServer companion object
class RpcServer(transport: Transport)

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def consumer(channel: Channel, queueName: String): ZStream[Any, Nothing, Delivery]
def declareQueue(channel: Channel, queueName: String, route: String): Task[BindOk]
def listen(route: String, callback: Delivery => Task[String], queue: Option[String]): ZIO[Scope, Throwable, Runtime[Throwable, Unit]]
def publish(channel: Channel, exchange: String, route: String, message: Array[Byte], mandatory: Boolean, props: BasicProperties): Task[Unit]
def returnListener(channel: Channel): ZStream[Any, Nothing, Return]

Concrete fields

val channels: ConcurrentHashMap[Int, Channel]