setPriority(int) method

Sets the priority of the request.

Syntax

public void setPriority (int value)

Parameters

Returns

none

Remarks

Allowed values: IRequest.PRIORITY_HIGH and 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 by default to IRequest.PRIORITY_NORMAL

Example 1

BaseRequest getrequest = new BaseRequest(); getrequest.setPriority(1);