Code example for ReentrantLock

0
 * User: qii 
 * Date: 13-5-15 
 */ 
public class MyFavMsgLoader extends AbstractAsyncNetRequestTaskLoader<FavListBean> { 
 
    private static Lock lock = new ReentrantLock();
 
    private String token;
    private String page;
 
    public MyFavMsgLoader(Context context, String token, String page) {
        super(context);
        this.token = token;
        this.page = page;
    } 
 
 
    public FavListBean loadData() throws WeiboException { 
        FavListDao dao = new FavListDao(token);
        dao.setPage(page);
        FavListBean result = null;