RpcClient

liewhite.rpc.RpcClient
See theRpcClient companion object
class RpcClient(transport: Transport, publishLock: ReentrantLock, exchange: String)

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def call(route: String, message: Array[Byte], mandatory: Boolean, props: BasicProperties, timeout: Duration): Task[Array[Byte]]
def close(): Try[Unit]
def nextTag: ZIO[Any, Nothing, Long]
def send(route: String, message: Array[Byte], mandatory: Boolean, props: BasicProperties): Task[Unit]
def start(): ZIO[Any, Nothing, Runtime[Throwable, Long]]
def waitForResponse(tag: Long): Task[Delivery]

Concrete fields

val channel: Channel
val requests: ConcurrentHashMap[Long, (String, Promise[RpcException, Delivery])]