goog.Disposable | |
goog.messaging.RespondingChannel | goog.Disposable |
messageChannel
: goog.messaging.MessageChannel
The messageChannel to
to wrap and allow for responses. This channel must not have any existing
services registered. All service registration must be done through the
RespondingChannel#registerService api instead. The other end of
channel must also be a RespondingChannel. |
![]()
A intermediary proxy for service callbacks to be invoked and return their
their results to the remote caller's callback.
|
code » | ||||
![]()
Receives the results of the peer's service results.
|
code » | ||||
![]()
No description.
|
code » | ||||
Gets a random number to use for method invocation results.
Returns: number
A unique random signature.
|
code » | ||||
![]()
Registers a service to be called when a message is received.
Arguments:
|
code » | ||||
![]()
Sends a message over the channel.
Arguments:
|
code » |
![]()
Invokes a callback function when this object is disposed. Callbacks are
invoked in the order in which they were added.
Arguments:
|
code » | |||
![]()
Disposes of the object. If the object hasn't already been disposed of, calls
#disposeInternal . Classes that extend goog.Disposable should
override #disposeInternal in order to delete references to COM
objects, DOM nodes, and other disposable objects. Reentrant.
Returns: void
Nothing.
|
code » | |||
![]()
Deletes or nulls out any references to COM objects, DOM nodes, or other
disposable objects. Classes that extend
goog.Disposable should
override this method.
Not reentrant. To avoid calling it twice, it must only be called from the
subclass' disposeInternal method. Everywhere else the public
dispose method must be used.
For example:
mypackage.MyClass = function() { mypackage.MyClass.base(this, 'constructor'); // Constructor logic specific to MyClass. ... }; goog.inherits(mypackage.MyClass, goog.Disposable); mypackage.MyClass.prototype.disposeInternal = function() { // Dispose logic specific to MyClass. ... // Call superclass's disposeInternal at the end of the subclass's, like // in C++, to avoid hard-to-catch issues. mypackage.MyClass.base(this, 'disposeInternal'); }; |
code » | |||
Use
#isDisposed instead.
No description.
Returns: boolean
Whether the object has been disposed of.
|
code » | |||
No description.
Returns: boolean
Whether the object has been disposed of.
|
code » | |||
![]()
Associates a disposable object with this object so that they will be disposed
together.
Arguments:
|
code » |
![]()
No description.
|
Code » | |
Logger object for goog.messaging.RespondingChannel.
|
Code » | |
The message channel wrapped in a MultiChannel so we can send private and
public messages on it.
|
Code » | |
![]()
The next signature index to save the callback against.
|
Code » | |
The virtual channel to send private messages on.
|
Code » | |
The virtual channel to send public messages on.
|
Code » | |
![]()
Map of invocation signatures to function callbacks. These are used to keep
track of the asyncronous service invocations so the result of a service
call can be passed back to a callback in the calling frame.
|
Code » |
![]()
The name of the method invocation callback service (used internally).
|
Code » | |
![]()
The name of the channel to send private control messages on.
|
Code » | |
![]()
The name of the channel to send public messages on.
|
Code » | |
![]()
No description.
|
Code » |