All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.extendedstats.container.RemoteExtendedStatisticsContainer Maven / Gradle / Ivy

There is a newer version: 14.0.31.Final
Show newest version
package org.infinispan.extendedstats.container;

/**
 * Container for the statistics corresponding to remote originated transactions. It only knows how to merge from others
 * {@link RemoteExtendedStatisticsContainer}
 *
 * @author Pedro Ruivo
 * @since 6.0
 */
public class RemoteExtendedStatisticsContainer extends BaseExtendedStatisticsContainer {
   public RemoteExtendedStatisticsContainer() {
      super(ExtendedStatistic.getRemoteStatsSize());
   }

   @Override
   public void mergeTo(ConcurrentGlobalContainer globalContainer) {
      globalContainer.merge(stats, false);
   }

   @Override
   protected int getIndex(ExtendedStatistic statistic) {
      return statistic.getRemoteIndex();
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy