|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectqx.core.Object
qx.core.Target
qx.io.remote.RequestQueue
public class RequestQueue
Handles scheduling of requests to be sent to a server.
This class is a singleton and is used by qx.io.remote.Request to schedule its requests. It should not be used directly.
Constructor Summary | |
---|---|
RequestQueue()
|
Method Summary | |
---|---|
void |
_applyEnabled(java.lang.Object value,
java.lang.Object old)
|
void |
_check()
|
void |
_debug()
|
void |
_oncompleted(Event e)
|
void |
_oninterval(Event e)
|
void |
_onsending(Event e)
|
void |
_remove(java.lang.Object vTransport)
|
void |
abort(java.lang.Object vRequest)
Remove the request from the pending requests queue. |
void |
add(java.lang.Object vRequest)
Add the request to the pending requests queue. |
java.lang.Integer |
getDefaultTimeout()
Returns the (computed) value of the property defaultTimeout . |
boolean |
getEnabled()
Returns the (computed) value of the property enabled . |
java.lang.Integer |
getMaxConcurrentRequests()
Returns the (computed) value of the property maxConcurrentRequests . |
java.lang.Integer |
getMaxTotalRequests()
Returns the (computed) value of the property maxTotalRequests . |
void |
initDefaultTimeout(java.lang.Integer arg)
Calls the apply method and dispatches the change event of the property defaultTimeout
with the default value defined by the class developer. |
void |
initEnabled(boolean arg)
Calls the apply method and dispatches the change event of the property enabled
with the default value defined by the class developer. |
void |
initMaxConcurrentRequests(java.lang.Integer arg)
Calls the apply method and dispatches the change event of the property maxConcurrentRequests
with the default value defined by the class developer. |
void |
initMaxTotalRequests(java.lang.Integer arg)
Calls the apply method and dispatches the change event of the property maxTotalRequests
with the default value defined by the class developer. |
boolean |
isEnabled()
Check whether the (computed) value of the boolean property enabled equals true . |
void |
resetDefaultTimeout()
Resets the user value of the property defaultTimeout . |
void |
resetEnabled()
Resets the user value of the property enabled . |
void |
resetMaxConcurrentRequests()
Resets the user value of the property maxConcurrentRequests . |
void |
resetMaxTotalRequests()
Resets the user value of the property maxTotalRequests . |
void |
setDefaultTimeout(java.lang.Integer arg)
Sets the user value of the property defaultTimeout . |
void |
setEnabled(boolean arg)
Sets the user value of the property enabled . |
void |
setMaxConcurrentRequests(java.lang.Integer arg)
Sets the user value of the property maxConcurrentRequests . |
void |
setMaxTotalRequests(java.lang.Integer arg)
Sets the user value of the property maxTotalRequests . |
boolean |
toggleEnabled()
Toggles the (computed) value of the boolean property enabled . |
Methods inherited from class qx.core.Target |
---|
_dispatchEvent, addChangeSelectionListener, addChangeValueListener, addEventListener, addExecuteListener, addJavaEventListener, createDispatchChangeEvent, createDispatchDataEvent, createDispatchEvent, dispatchEvent, hasEventListeners, removeEventListener |
Methods inherited from class qx.core.Object |
---|
_disposeFields, _disposeObjectDeep, _disposeObjects, base, dispose, get, getDisposed, isDisposed, reset, self, set, toHashCode, toString_ |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RequestQueue()
Method Detail |
---|
public void _applyEnabled(java.lang.Object value, java.lang.Object old)
public void _check()
public void _debug()
public void _oncompleted(Event e)
public void _oninterval(Event e)
public void _onsending(Event e)
public void _remove(java.lang.Object vTransport)
public void abort(java.lang.Object vRequest)
Remove the request from the pending requests queue.
The underlying transport of the request is forced into the aborted state (“aborted”) and listeners of the “aborted” signal are notified about the event. If the request isn’t in the pending requests queue, this method is a noop.
public void add(java.lang.Object vRequest)
Add the request to the pending requests queue.
public java.lang.Integer getDefaultTimeout()
Returns the (computed) value of the property defaultTimeout
.
For further details take a look at the property definition: defaultTimeout
.
public boolean getEnabled()
Returns the (computed) value of the property enabled
.
For further details take a look at the property definition: enabled
.
public java.lang.Integer getMaxConcurrentRequests()
Returns the (computed) value of the property maxConcurrentRequests
.
For further details take a look at the property definition: maxConcurrentRequests
.
public java.lang.Integer getMaxTotalRequests()
Returns the (computed) value of the property maxTotalRequests
.
For further details take a look at the property definition: maxTotalRequests
.
public void initDefaultTimeout(java.lang.Integer arg)
Calls the apply method and dispatches the change event of the property defaultTimeout
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: defaultTimeout
.
public void initEnabled(boolean arg)
Calls the apply method and dispatches the change event of the property enabled
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: enabled
.
public void initMaxConcurrentRequests(java.lang.Integer arg)
Calls the apply method and dispatches the change event of the property maxConcurrentRequests
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: maxConcurrentRequests
.
public void initMaxTotalRequests(java.lang.Integer arg)
Calls the apply method and dispatches the change event of the property maxTotalRequests
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: maxTotalRequests
.
public boolean isEnabled()
Check whether the (computed) value of the boolean property enabled
equals true
.
For further details take a look at the property definition: enabled
.
public void resetDefaultTimeout()
Resets the user value of the property defaultTimeout
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: defaultTimeout
.
public void resetEnabled()
Resets the user value of the property enabled
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: enabled
.
public void resetMaxConcurrentRequests()
Resets the user value of the property maxConcurrentRequests
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: maxConcurrentRequests
.
public void resetMaxTotalRequests()
Resets the user value of the property maxTotalRequests
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: maxTotalRequests
.
public void setDefaultTimeout(java.lang.Integer arg)
Sets the user value of the property defaultTimeout
.
For further details take a look at the property definition: defaultTimeout
.
public void setEnabled(boolean arg)
Sets the user value of the property enabled
.
For further details take a look at the property definition: enabled
.
public void setMaxConcurrentRequests(java.lang.Integer arg)
Sets the user value of the property maxConcurrentRequests
.
For further details take a look at the property definition: maxConcurrentRequests
.
public void setMaxTotalRequests(java.lang.Integer arg)
Sets the user value of the property maxTotalRequests
.
For further details take a look at the property definition: maxTotalRequests
.
public boolean toggleEnabled()
Toggles the (computed) value of the boolean property enabled
.
For further details take a look at the property definition: enabled
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |