jsonrpclib-core
jsonrpclib-core
jsonrpclib
Channel
Channel
Codec
Codec
ConflictingMethodError
Endpoint
Endpoint
NotificationEndpoint
PartiallyAppliedEndpoint
RequestResponseEndpoint
ErrorCodec
ErrorCodec
ErrorPayload
ErrorPayload
ErrorReport
FutureBasedChannel
Monadic
Monadic
Payload
Payload
ProtocolError
ProtocolError
InternalError
InvalidParams
InvalidRequest
MethodNotFound
ParseError
ServerError
StubTemplate
StubTemplate
NotificationTemplate
RequestResponseTemplate
jsonrpclib.internals
CallId
CallId
NullId
NumberId
StringId
Message
jsonrpclib-core
/
jsonrpclib
/
FutureBasedChannel
FutureBasedChannel
abstract
class
FutureBasedChannel
(
endpoints:
List
[
Endpoint
[
Future
]])(
implicit
ec:
ExecutionContext
)
Graph
Supertypes
trait
Channel
[
Future
]
class
Object
trait
Matchable
class
Any
Value members
Value members
Concrete methods
override
def
createPromise
[
A
]():
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
](
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