FutureBasedChannel

abstract class FutureBasedChannel(endpoints: List[Endpoint[Future]])(implicit ec: ExecutionContext)
trait Channel[Future]
class Object
trait Matchable
class Any

Value members

Concrete methods

override def createPromise[A](callId: CallId): Future[(Try[A] => Future[Unit], () => Future[A])]
Definition Classes
MessageDispatcher
protected def getEndpoint(method: String): Future[Option[Endpoint[Future]]]
protected def nextCallId(): Future[CallId]
protected def removePendingCall(callId: CallId): Future[Option[OutputMessage => Future[Unit]]]
def reportError(params: Option[Payload], error: ProtocolError, method: String): Future[Unit]
protected def sendMessage(message: Message): Future[Unit]
def sendPayload(msg: Payload): Future[Unit]
protected def storePendingCall(callId: CallId, handle: OutputMessage => Future[Unit]): Future[Unit]

Inherited methods

protected def background[A](maybeCallId: Option[CallId], fa: Future[A]): Future[Unit]
Inherited from:
MessageDispatcher
def mountEndpoint(endpoint: Endpoint[Future]): Future[Unit]
Inherited from:
Channel
def notificationStub[In](method: String)(implicit inCodec: Codec[In]): In => Future[Unit]
Inherited from:
MessageDispatcher
final def simpleStub[In : Codec, Out : Codec](method: String): In => Future[Out]
Inherited from:
MonadicChannel
def stub[In, Err, Out](method: String)(implicit inCodec: Codec[In], errCodec: ErrorCodec[Err], outCodec: Codec[Out]): In => Future[Either[Err, Out]]
Inherited from:
MessageDispatcher
final def stub[In, Err, Out](template: StubTemplate[In, Err, Out]): In => Future[Either[Err, Out]]
Inherited from:
MonadicChannel
def unmountEndpoint(method: String): Future[Unit]
Inherited from:
Channel