"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "clustering/web/cache/src/main/java/org/wildfly/clustering/web/cache/session/coarse/CoarseSessionAttributes.java" between
wildfly-21.0.0.Final-src.zip and wildfly-21.0.1.Final-src.zip

About: WildFly is an application server with a standards-compliant, fast and lightweight implementation of the Java Enterprise Edition 7 Platform specifications (formerly known as JBoss community version). Sources.

CoarseSessionAttributes.java  (wildfly-21.0.0.Final-src):CoarseSessionAttributes.java  (wildfly-21.0.1.Final-src)
skipping to change at line 56 skipping to change at line 56
private final AtomicBoolean dirty = new AtomicBoolean(false); private final AtomicBoolean dirty = new AtomicBoolean(false);
public CoarseSessionAttributes(Map<String, Object> attributes, Mutator mutat or, Marshallability marshallability, Immutability immutability, CacheProperties properties, SessionActivationNotifier notifier) { public CoarseSessionAttributes(Map<String, Object> attributes, Mutator mutat or, Marshallability marshallability, Immutability immutability, CacheProperties properties, SessionActivationNotifier notifier) {
super(attributes); super(attributes);
this.attributes = attributes; this.attributes = attributes;
this.mutator = mutator; this.mutator = mutator;
this.marshallability = marshallability; this.marshallability = marshallability;
this.immutability = immutability; this.immutability = immutability;
this.properties = properties; this.properties = properties;
this.notifier = notifier; this.notifier = notifier;
if (this.properties.isPersistent()) { if (this.notifier != null) {
this.notifier.postActivate(); this.notifier.postActivate();
} }
} }
@Override @Override
public Object removeAttribute(String name) { public Object removeAttribute(String name) {
Object value = this.attributes.remove(name); Object value = this.attributes.remove(name);
if (value != null) { if (value != null) {
this.dirty.set(true); this.dirty.set(true);
} }
skipping to change at line 95 skipping to change at line 95
public Object getAttribute(String name) { public Object getAttribute(String name) {
Object value = this.attributes.get(name); Object value = this.attributes.get(name);
if (!this.immutability.test(value)) { if (!this.immutability.test(value)) {
this.dirty.set(true); this.dirty.set(true);
} }
return value; return value;
} }
@Override @Override
public void close() { public void close() {
if (this.properties.isPersistent()) { if (this.notifier != null) {
this.notifier.prePassivate(); this.notifier.prePassivate();
} }
if (this.dirty.compareAndSet(true, false)) { if (this.dirty.compareAndSet(true, false)) {
this.mutator.mutate(); this.mutator.mutate();
} }
} }
} }
 End of changes. 3 change blocks. 
3 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)