goog.net.BrowserChannel.createChannelRequest(channel, channelDebug, opt_sessionId, opt_requestId, opt_retryId)
⇒
Instantiates a ChannelRequest with the given parameters. Overidden in tests.
Arguments:
Returns:
The created channel request.
|
code » | ||||||
|
Returns the singleton event target for stat events.
Returns:
The event target for stat events.
|
code » | ||||||
|
Returns whether or not the given error/status combination is fatal or not.
On fatal errors we immediately close the session rather than retrying the
failed request.
|
code » | ||||||
goog.net.BrowserChannel.notifyStatEvent(stat)
Helper function to call the stat event callback.
Arguments:
|
code » | ||||||
goog.net.BrowserChannel.notifyTimingEvent(size, rtt, retries)
Helper function to notify listeners about POST request performance.
|
code » | ||||||
goog.net.BrowserChannel.onEndExecution()
Helper function to call the end hook
|
code » | ||||||
goog.net.BrowserChannel.onStartExecution()
Helper function to call the start hook
|
code » | ||||||
goog.net.BrowserChannel.setEndThreadExecutionHook(endHook)
Allows the application to set an execution hooks for when BrowserChannel
stops processing requests. This is useful to track timing or logging
special information. The function takes no parameters and return void.
Arguments:
|
code » | ||||||
goog.net.BrowserChannel.setStartThreadExecutionHook(startHook)
Allows the application to set an execution hooks for when BrowserChannel
starts processing requests. This is useful to track timing or logging
special information. The function takes no parameters and return void.
Arguments:
|
code » | ||||||
|
Wrapper around SafeTimeout which calls the start and end execution hooks
with a try...finally block.
|
code » |
|
Maximum number of attempts to connect to the server for back channel
requests.
|
Code » | |
|
Events fired by BrowserChannel and associated objects
|
Code » | |
|
The timeout in milliseconds for a forward channel request.
|
Code » | |
|
When retrying for an inactive channel, we will multiply the total delay by
this number.
|
Code » | |
|
The latest protocol version that this class supports. We request this version
from the server when opening the connection. Should match
com.google.net.browserchannel.BrowserChannel.LATEST_CHANNEL_VERSION.
|
Code » | |
|
The normal response for forward channel requests.
Used only before version 8 of the protocol.
|
Code » | |
|
The maximum number of maps that can be sent in one POST. Should match
com.google.net.browserchannel.BrowserChannel.MAX_MAPS_PER_REQUEST.
|
Code » | |
|
A guess at a cutoff at which to no longer assume the backchannel is dead
when we are slow to receive data. Number in bytes.
Assumption: The worst bandwidth we work on is 50 kilobits/sec
50kbits/sec * (1 byte / 8 bits) * 6 sec dead backchannel timeout
|
Code » | |
|
A number in MS of how long we guess the maxmium amount of time a round trip
to the server should take. In the future this could be substituted with a
real measurement of the RTT.
|
Code » | |
|
Application provided execution hook for the end hook.
|
Code » | |
|
Application provided execution hook for the start hook.
|
Code » | |
|
Singleton event target for firing stat events
|
Code » |