Code example for AtomicInteger

Methods: get

0
        System.out.println("Received " + receivedEntries.incrementAndGet() + " of " + feed.getEntries().size() + " entries");
    } 
 
    public int getCount() 
    { 
        return receivedEntries.get();
    } 
 
    public AtomicInteger getReceivedEntries()
    { 
        return receivedEntries;
    } 
}