use AtomicLongfieldUpdater in FollowerLogInformationImpl 59/14459/3
authorRobert Varga <rovarga@cisco.com>
Fri, 23 Jan 2015 19:10:44 +0000 (20:10 +0100)
committerRobert Varga <rovarga@cisco.com>
Fri, 23 Jan 2015 22:36:26 +0000 (23:36 +0100)
commit9c127a5f815a727c68e10b023545bcbd2e6e0389
tree64b82314ba38f39eee630e3f5f0dc9aec68c0189
parent95458493a2d9ed9a3450326eaddb7b5778c4cbf8
use AtomicLongfieldUpdater in FollowerLogInformationImpl

Instead of keeping two AtomicLong instances, we instantiate two shared
updater classes and keep the values in volatile fields. This lowers the
memory consumption.

Change-Id: I9e6ce426500ee61b8c02d75cb0edd361e996a443
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/FollowerLogInformationImpl.java