Code example for AtomicInteger

Methods: getAndAdd

0
 
    @Schedule(interval = 6000) 
    @Receive(uri = "${feed.uri}", properties = FEED.DONT_SPLIT_FEED) 
    public void readFeed(Feed feed) throws Exception
    { 
        count.getAndAdd(feed.getEntries().size());
    } 
 
    public int getCount() 
    { 
        return count.get();
    } 
}