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

io.hyperfoil.hotrod.resource.HotRodResource Maven / Gradle / Ivy

There is a newer version: 0.26
Show newest version
package io.hyperfoil.hotrod.resource;

import java.util.concurrent.CompletableFuture;

import io.hyperfoil.api.session.Session;

public class HotRodResource implements Session.Resource {

   private long startTimestampNanos;
   private long startTimestampMillis;
   private CompletableFuture future;

   public void set(CompletableFuture future, long startTimestampNanos, long startTimestampMillis) {
      this.future = future;
      this.startTimestampNanos = startTimestampNanos;
      this.startTimestampMillis = startTimestampMillis;
   }

   public boolean isComplete() {
      return this.future.isDone();
   }

   public long getStartTimestampMillis() {
      return startTimestampMillis;
   }

   public long getStartTimestampNanos() {
      return startTimestampNanos;
   }

   public static class Key implements Session.ResourceKey {

   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy