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

io.ebeaninternal.server.profile.TimedProfileLocationRegistry Maven / Gradle / Ivy

There is a newer version: 15.8.0
Show newest version
package io.ebeaninternal.server.profile;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * Global registry of the TimedProfileLocation instances created.
 */
public final class TimedProfileLocationRegistry {

  private static final List list = Collections.synchronizedList(new ArrayList<>());

  /**
   * Register the timed profile location instance.
   */
  public static void register(TimedProfileLocation location) {
    list.add(location);
  }

  /**
   * Return all the registered timed locations.
   */
  public static List registered() {
    return list;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy