setPriority(final int) method

Sets the priority of the request.

Syntax

public void setPriority ( final int aPriority )

Parameters

Returns

None

Example 1

BaseRequest getrequest = new BaseRequest(); getrequest.setPriority(IRequest.PRIORITY_NORMAL);

Usage

Allowed values are IRequest.PRIORITY_HIGH or IRequest.PRIORITY_NORMAL. In case of a different value, the default IRequest.PRIORITY_NORMAL will be used by the network. If the network layer finds an IRequest with IRequest.PRIORITY_HIGH priority in the queue, that request will be executed first. If there are more than one IRequests with IRequest.PRIORITY_HIGH priority, the network layer will choose an execution order. If the priority is not one of the predefined values, the priority will be set to the default value IRequest.PRIORITY_NORMAL.