qx.io.remote
Class RequestQueue

java.lang.Object
  extended by qx.core.Object
      extended by qx.core.Target
          extended by qx.io.remote.RequestQueue

public class RequestQueue
extends Target

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

RequestQueue

public RequestQueue()
Method Detail

_applyEnabled

public void _applyEnabled(java.lang.Object value,
                          java.lang.Object old)

_check

public void _check()

_debug

public void _debug()

_oncompleted

public void _oncompleted(Event e)

_oninterval

public void _oninterval(Event e)

_onsending

public void _onsending(Event e)

_remove

public void _remove(java.lang.Object vTransport)

abort

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.


add

public void add(java.lang.Object vRequest)

Add the request to the pending requests queue.


getDefaultTimeout

public java.lang.Integer getDefaultTimeout()

Returns the (computed) value of the property defaultTimeout.

For further details take a look at the property definition: defaultTimeout.


getEnabled

public boolean getEnabled()

Returns the (computed) value of the property enabled.

For further details take a look at the property definition: enabled.


getMaxConcurrentRequests

public java.lang.Integer getMaxConcurrentRequests()

Returns the (computed) value of the property maxConcurrentRequests.

For further details take a look at the property definition: maxConcurrentRequests.


getMaxTotalRequests

public java.lang.Integer getMaxTotalRequests()

Returns the (computed) value of the property maxTotalRequests.

For further details take a look at the property definition: maxTotalRequests.


initDefaultTimeout

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.


initEnabled

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.


initMaxConcurrentRequests

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.


initMaxTotalRequests

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.


isEnabled

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.


resetDefaultTimeout

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.


resetEnabled

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.


resetMaxConcurrentRequests

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.


resetMaxTotalRequests

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.


setDefaultTimeout

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.


setEnabled

public void setEnabled(boolean arg)

Sets the user value of the property enabled.

For further details take a look at the property definition: enabled.


setMaxConcurrentRequests

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.


setMaxTotalRequests

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.


toggleEnabled

public boolean toggleEnabled()

Toggles the (computed) value of the boolean property enabled.

For further details take a look at the property definition: enabled.



Copyright © 2008 1&1. All Rights Reserved.