org.jgroups.util.PaddedAtomicBoolean Maven / Gradle / Ivy
Go to download
This artifact provides a single jar that contains all classes required to use remote EJB and JMS, including
all dependencies. It is intended for use by those not using maven, maven users should just import the EJB and
JMS BOM's instead (shaded JAR's cause lots of problems with maven, as it is very easy to inadvertently end up
with different versions on classes on the class path).
The newest version!
package org.jgroups.util;
import java.util.concurrent.atomic.AtomicBoolean;
/**
* @author Bela Ban
* @since 4.0
*/
@SuppressWarnings("serial")
public class PaddedAtomicBoolean extends AtomicBoolean {
protected volatile int i1=1,i2=2,i3=3,i4=4,i5=5,i6=6;
protected volatile int i7=7,i8=8,i9=9,i10=10,i11=11,i12=12,i13=13,i14=14,i15=15,i16=16;
public PaddedAtomicBoolean(boolean initialValue) {
super(initialValue);
}
public int sum() {
return i1+i2+i3+i4+i5+i6+i7+i8+i9+i10+i11+i12+i13+i14+i15+i16;
}
}