Code example for Lock

Methods: lockunlock

0
    public UserListBean loadData() throws WeiboException { 
        FanListDao dao = new FanListDao(token, uid);
        dao.setCursor(cursor);
 
        UserListBean result = null;
        lock.lock();
 
        try { 
            result = dao.getGSONMsgList();
        } finally { 
            lock.unlock();
        } 
 
 
        return result;
    } 
 
} 
 
Connect your IDE to all the code out there  Get Codota for Java