goog.Disposable | |
goog.messaging.BufferedChannel | goog.Disposable |
messageChannel
: !goog.messaging.MessageChannel
The MessageChannel
we're wrapping.
|
opt_interval
: number=
Polling interval for sending ready
notifications to peer, in ms. Default is 50.
|
![]()
No description.
|
code » | |
![]()
No description.
|
code » | |
![]()
No description.
|
code » | |
No description.
Returns: boolean
Whether the channel's peer is ready.
|
code » | |
![]()
No description.
|
code » | |
![]()
No description.
|
code » | |
![]()
Send a message over the channel. If the peer is not ready, the message will
be buffered and sent once we've received a ready message from our peer.
|
code » | |
![]()
Handles one tick of our peer ready notification loop. This entails sending a
ready ping to the peer and shutting down the loop if we've received a ping
ourselves.
|
code » | |
![]()
Marks the channel's peer as ready, then sends buffered messages and nulls the
buffer. Subsequent calls to setPeerReady_ have no effect.
|
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 » |
![]()
Buffer of messages to be sent when the channel's peer is ready.
|
Code » | |
![]()
No description.
|
Code » | |
Virtual channel for carrying control messages for BufferedChannel.
|
Code » | |
Logger.
|
Code » | |
Channel dispatcher wrapping the underlying delegate channel.
|
Code » | |
![]()
Whether or not the peer channel is ready to receive messages.
|
Code » | |
Timer for the peer ready ping loop.
|
Code » | |
Virtual channel for carrying the user's messages.
|
Code » |
![]()
The name of the virtual channel along which internal control messages are
sent.
|
Code » | |
![]()
Default polling interval (in ms) for setPeerReady_ notifications.
|
Code » | |
![]()
The name of the private service which handles peer ready pings. The
service registered with this name is bound to this.setPeerReady_, an internal
part of BufferedChannel's implementation that clients should not send to
directly.
|
Code » | |
![]()
The name of the virtual channel along which user messages are sent.
|
Code » | |
![]()
No description.
|
Code » |