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

io.vertx.ext.unit.impl.Result Maven / Gradle / Ivy

There is a newer version: 5.0.0.CR3
Show newest version
package io.vertx.ext.unit.impl;

import java.util.Map;

/**
 * @author Julien Viet
 */
public class Result {

  final long beginTime;
  final long endTime;
  final Throwable failure;

  Result(long beginTime, long endTime, Throwable failure) {
    this.beginTime = beginTime;
    this.endTime = endTime;
    this.failure = failure;
  }

  long duration() {
    return endTime - beginTime;
  }

  public Throwable getFailure() {
    return failure;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy