Code example for AtomicInteger

Methods: decrementAndGet

0
    public int getWaitingApnsPermFailCount() { 
        return mWaitingApnsPermanentFailureCountDown.get();
    } 
 
    public void decWaitingApnsPermFailCount() { 
        mWaitingApnsPermanentFailureCountDown.decrementAndGet();
    } 
 
    public synchronized DataProfile getNextWaitingApn() { 
        ArrayList<DataProfile> list = mWaitingApns;
        DataProfile apn = null;
 
        if (list != null) {
            if (!list.isEmpty()) {
                apn = list.get(0);
            } 
        } 
        return apn;
    } 
 
    public synchronized void removeNextWaitingApn() {