Code example for ReentrantLock

0
 * User: qii 
 * Date: 13-5-12 
 */ 
public class SearchUserLoader extends AbstractAsyncNetRequestTaskLoader<UserListBean> { 
 
    private static Lock lock = new ReentrantLock();
 
    private String token;
    private String searchWord;
    private String page;
 
    public SearchUserLoader(Context context, String token, String searchWord, String page) {
        super(context);
        this.token = token;
        this.searchWord = searchWord;
        this.page = page;
    } 
 
 
    public UserListBean loadData() throws WeiboException { 
        SearchDao dao = new SearchDao(token, searchWord);