Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.seamfix.topriddy.valthemes;
- import java.util.concurrent.atomic.AtomicLong;
- /**
- *
- * @author temitopefaro
- */
- public class Statistics implements java.io.Serializable{
- private AtomicLong pageHits;
- private AtomicLong bbDownloadHits;
- private AtomicLong pcDownloadHits;
- public Statistics(){
- }
- public long getPageHits() {
- return pageHits.get();
- }
- public long incrementPageHits(long pageHits) {
- return this.pageHits.incrementAndGet();
- }
- public long getBbDownloadHits() {
- return bbDownloadHits.get();
- }
- public long incrementBbDownloadHits() {
- return this.bbDownloadHits.incrementAndGet();
- }
- public long getPcDownloadHits() {
- return this.pcDownloadHits.get();
- }
- public void setPcDownloadHits(AtomicLong pcDownloadHits) {
- this.pcDownloadHits.incrementAndGet();
- }
- public long getTotalDownloadHits(){
- return pcDownloadHits.get() + bbDownloadHits.get();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement