C D F G I O P S T U V

C

com.streamhub.client - package com.streamhub.client
The main classes and interfaces of the GWT Adapter.
connect(String) - Method in class com.streamhub.client.StreamHubGWTAdapter
Connects to the server
connect(FailoverParameters) - Method in class com.streamhub.client.StreamHubGWTAdapter
Connects to the server with advanced failover configuration.

D

disconnect() - Method in class com.streamhub.client.StreamHubGWTAdapter
Disconnects from the StreamHub server.

F

FailoverAlgorithm - Enum in com.streamhub.client
The failover algorithm to use when choosing a server to failover to.
FailoverParameters - Class in com.streamhub.client
The failover parameters for a connection to StreamHub.
FailoverParameters(List<String>) - Constructor for class com.streamhub.client.FailoverParameters
Creates a new FailoverParameters object

G

getAlgorithm() - Method in class com.streamhub.client.FailoverParameters
Gets the FailoverAlgorithm
getBackOffMultiplier() - Method in class com.streamhub.client.FailoverParameters
Gets the multiplier used when exponential backoff is enabled via FailoverParameters.setUseExponentialBackOff(boolean).
getInitialReconnectDelayMillis() - Method in class com.streamhub.client.FailoverParameters
Gets the initial time in milliseconds to wait before attempting reconnection
getMaxReconnectAttempts() - Method in class com.streamhub.client.FailoverParameters
Gets the maximum number of failed reconnection attempts before giving up.
getMaxReconnectDelayMillis() - Method in class com.streamhub.client.FailoverParameters
Gets the maximum amount of time in milliseconds to wait between reconnection attempts.
getServers() - Method in class com.streamhub.client.FailoverParameters
Gets the list of server URLs to connect to

I

isUseExponentialBackOff() - Method in class com.streamhub.client.FailoverParameters
Returns true if exponential backoff is enabled, false otherwise.

O

onUpdate(String, JavaScriptObject) - Static method in class com.streamhub.client.StreamHubGWTAdapter
This method is called internally everytime an update is received to a subscribed topic.
onUpdate(String, JSONObject) - Method in interface com.streamhub.client.StreamHubGWTUpdateListener
The method that is called everytime an update is received on topic

P

publish(String, JSONObject) - Method in class com.streamhub.client.StreamHubGWTAdapter
Publishes data on a particular topic.

S

setAlgorithm(FailoverAlgorithm) - Method in class com.streamhub.client.FailoverParameters
Sets the FailoverAlgorithm
setBackOffMultiplier(double) - Method in class com.streamhub.client.FailoverParameters
Sets the multiplier used when exponential backoff is enabled via FailoverParameters.setUseExponentialBackOff(boolean).
setInitialReconnectDelayMillis(long) - Method in class com.streamhub.client.FailoverParameters
Sets the initial time in milliseconds to wait before attempting reconnection
setMaxReconnectAttempts(int) - Method in class com.streamhub.client.FailoverParameters
Sets the maximum number of failed reconnection attempts before giving up.
setMaxReconnectDelayMillis(long) - Method in class com.streamhub.client.FailoverParameters
Sets the maximum amount of time in milliseconds to wait between reconnection attempts.
setUseExponentialBackOff(boolean) - Method in class com.streamhub.client.FailoverParameters
Enables or disables exponential backoff.
StreamHubGWTAdapter - Class in com.streamhub.client
The main class for connecting to a StreamHub Push Server and subscribing to topics.
StreamHubGWTAdapter() - Constructor for class com.streamhub.client.StreamHubGWTAdapter
Creates a new un-connected StreamHub GWT adapter
StreamHubGWTUpdateListener - Interface in com.streamhub.client
This interface should be implemented by classes wanting to receive updates on subscribed topics.
subscribe(String, StreamHubGWTUpdateListener) - Method in class com.streamhub.client.StreamHubGWTAdapter
Subscribes to a particular topic.
subscribe(String[], StreamHubGWTUpdateListener) - Method in class com.streamhub.client.StreamHubGWTAdapter
Subscribes to an array of topics in a single request to the StreamHub server.

T

toString() - Method in enum com.streamhub.client.FailoverAlgorithm
 

U

unsubscribe(String) - Method in class com.streamhub.client.StreamHubGWTAdapter
Unsubscribes from a particular topic
unsubscribe(String[]) - Method in class com.streamhub.client.StreamHubGWTAdapter
Unsubscribes from an array of topics

V

valueOf(String) - Static method in enum com.streamhub.client.FailoverAlgorithm
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.streamhub.client.FailoverAlgorithm
Returns an array containing the constants of this enum type, in the order they're declared.

C D F G I O P S T U V

Copyright © 2009 StreamHub. Tutorials, news and guides can be found on the StreamHub Comet Blog.