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

com.hubspot.chrome.devtools.client.core.emulation.VirtualTimePolicy Maven / Gradle / Ivy

package com.hubspot.chrome.devtools.client.core.emulation;

import com.fasterxml.jackson.annotation.JsonValue;

/**
 * advance: If the scheduler runs out of immediate work, the virtual time base may fast forward to
 * allow the next delayed task (if any) to run; pause: The virtual time base may not advance;
 * pauseIfNetworkFetchesPending: The virtual time base may not advance if there are any pending
 * resource fetches.
 */
public enum VirtualTimePolicy {
  ADVANCE("advance"),

  PAUSE("pause"),

  PAUSE_IF_NETWORK_FETCHES_PENDING("pauseIfNetworkFetchesPending");

  private final String value;

  VirtualTimePolicy(String value) {
    this.value= value;
  }

  @JsonValue
  public String getValue() {
    return value;
  }

  @Override
  public String toString() {
    return value;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy