Package org.springframework.xd.analytics.metrics.core

Examples of org.springframework.xd.analytics.metrics.core.Counter


  public synchronized void reset(String name) {
    save(new Counter(name));
  }

  private synchronized Counter getOrCreate(String name) {
    Counter result = findOne(name);
    if (result == null) {
      result = new Counter(name);
      result = save(result);
    }
    return result;
  }
View Full Code Here


    return new StringRedisTemplate(redisConnectionFactory);
  }

  @Override
  protected Counter deserialize(String redisKey, String v) {
    return new Counter(redisKey, Long.valueOf(v));
  }
View Full Code Here

TOP

Related Classes of org.springframework.xd.analytics.metrics.core.Counter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.