Google is committed to advancing racial equity for Black communities. See how.

AsyncProxyController<T> class

A controller for Future based proxies.

Constructors

AsyncProxyController ({String $serviceName, String $interfaceName})

Creates proxy controller. ...

Properties

$interfaceNameString

The name of the interface of T. ...
final

$serviceNameString

The service name associated with T, if any. ...
final

hashCodeint

The hash code for this object. ...
read-only, inherited

isBoundbool

Is this interface bound?
read-only, inherited

isClosedbool

Is this interface closed?
read-only, inherited

isUnboundbool

Is this interface unbound?
read-only, inherited

onEpitaphReceivedEpitaphHandler

Called when an epitaph is received (from channel closure).
read / write

onResponseMessageSink

Called whenever this object receives a response on a bound channel. ...
read / write

runtimeTypeType

A representation of the runtime type of the object.
read-only, inherited

stateInterfaceState

Gets the current state.
@protected, read / write, inherited

stateChangesStream<InterfaceState>

A stream of state changes.
read-only, inherited

whenBoundFuture<void>

A future that completes when the interface becomes bound.
read-only, inherited

whenClosedFuture<void>

A future that completes when the interface is closed.
read-only, inherited

Methods

bind(InterfaceHandle<T> interfaceHandle) void

Binds the proxy to the given interface handle. ...

close() void

Close the channel bound to the proxy. ...

getCompleter(int txid) Completer

Returns the completer associated with the given response message. ...

noSuchMethod(Invocation invocation) dynamic

Invoked when a non-existent method or property is accessed. ...
inherited

proxyError(FidlError error) void

close the channel and forwards error to any open completers.

request() InterfaceRequest<T>

Creates an interface request whose peer is bound to this interface proxy. ...

sendMessage(Message message) void

Sends the given messages over the bound channel. ...

sendMessageWithResponse(Message message, Completer completer) void

Sends the given messages over the bound channel and registers a Completer to handle the response. ...

toString() String

Returns a string representation of this object.
inherited

unbind() InterfaceHandle<T>

Unbinds the proxy and returns the unbound channel as an interface handle. ...

Operators

operator ==(Object other) bool

The equality operator. ...
inherited