|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.management.ManageableComponent
flex.messaging.endpoints.AbstractEndpoint
flex.messaging.endpoints.BaseHTTPEndpoint
flex.messaging.endpoints.BasePollingHTTPEndpoint
public abstract class BasePollingHTTPEndpoint
Base for HTTP-based endpoints that support regular polling and long polling which means placing request threads that are polling for messages into a wait state until messages are available to deliver or the configurable wait interval is reached.
| Field Summary |
|---|
| Fields inherited from class flex.messaging.endpoints.AbstractEndpoint |
|---|
LOG_CATEGORY |
| Constructor Summary | |
|---|---|
BasePollingHTTPEndpoint()
Constructs an unmanaged BasePollingHTTPEndpoint. |
|
BasePollingHTTPEndpoint(boolean enableManagement)
Constructs an BasePollingHTTPEndpoint with the indicated management. |
|
| Method Summary | |
|---|---|
int |
getClientWaitInterval()
Returns the number of milliseconds the client will wait after receiving a response for a poll with server wait before it issues its next poll request. |
int |
getMaxWaitingPollRequests()
Returns the maximum number of server poll response threads that will be waiting for messages to arrive for clients. |
long |
getWaitInterval()
Returns the number of milliseconds the server poll response thread will be waiting for messages to arrive for the client. |
void |
initialize(String id,
ConfigMap properties)
Initializes the Endpoint with the properties. |
void |
setClientWaitInterval(int value)
Sets the number of milliseconds a client will wait after receiving a response for a poll with server wait before it issues its next poll request. |
void |
setMaxWaitingPollRequests(int maxWaitingPollRequests)
Sets the maximum number of server poll response threads that will be waiting for messages to arrive for clients. |
void |
setWaitInterval(long waitInterval)
Sets the number of milliseconds the server poll response thread will be waiting for messages to arrive for the client. |
void |
start()
Sets up monitoring of waited poll requests so they can be notified and exit when the endpoint stops. |
void |
stop()
Ensures that no poll requests in a wait state are left un-notified when the endpoint stops. |
void |
waitEnd(Object notifier)
Hook method invoked directly after a wait completes. |
void |
waitStart(Object notifier)
Hook method invoked directly before a wait begins. |
| Methods inherited from class flex.messaging.endpoints.BaseHTTPEndpoint |
|---|
getRedirectURL, isAddNoCacheHeaders, isInvalidateSessionOnDisconnect, service, setAddNoCacheHeaders, setInvalidateSessionOnDisconnect, setRedirectURL, setupFlexClient |
| Methods inherited from class flex.management.ManageableComponent |
|---|
getControl, getId, getParent, isManaged, isStarted, isValid, setControl, setManaged, setParent |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface flex.messaging.endpoints.Endpoint |
|---|
getId, isStarted |
| Methods inherited from interface flex.management.Manageable |
|---|
getControl, isManaged, setControl, setManaged |
| Constructor Detail |
|---|
public BasePollingHTTPEndpoint()
BasePollingHTTPEndpoint.
public BasePollingHTTPEndpoint(boolean enableManagement)
BasePollingHTTPEndpoint with the indicated management.
enableManagement - true if the BasePollingHTTPEndpoint
is manageable; otherwise false.| Method Detail |
|---|
public void initialize(String id,
ConfigMap properties)
Endpoint with the properties.
If subclasses override, they must call super.initialize().
initialize in interface Endpointinitialize in interface FlexConfigurableinitialize in class BaseHTTPEndpointid - Id of the Endpoint.properties - Properties for the Endpoint.public int getClientWaitInterval()
public void setClientWaitInterval(int value)
public int getMaxWaitingPollRequests()
public void setMaxWaitingPollRequests(int maxWaitingPollRequests)
maxWaitingPollRequests - The maximum number of server poll response threads
that will be waiting for messages to arrive for the client.public long getWaitInterval()
public void setWaitInterval(long waitInterval)
waitInterval - The number of milliseconds the server poll response thread will be
waiting for messages to arrive for the client.public void start()
start in interface Endpointstart in interface FlexComponentstart in class BaseHTTPEndpointAbstractEndpoint.start()public void stop()
stop in interface Endpointstop in interface FlexComponentstop in class AbstractEndpointAbstractEndpoint.stop()public void waitStart(Object notifier)
PollWaitListener
waitStart in interface PollWaitListenernotifier - The Object being used to wait()/notify().PollWaitListener.waitStart(Object)public void waitEnd(Object notifier)
PollWaitListener
waitEnd in interface PollWaitListenernotifier - The Object being used to wait()/notify().PollWaitListener.waitEnd(Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/blazeds/1/javadoc/flex/messaging/endpoints/BasePollingHTTPEndpoint.html