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

com.linkedin.playparseq.trace.j.renderers.ParSeqTraceRenderer Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2015 LinkedIn Corp.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
 * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 */
package com.linkedin.playparseq.trace.j.renderers;

import com.linkedin.playparseq.j.stores.ParSeqTaskStore;
import java.util.concurrent.CompletionStage;
import play.mvc.Http;
import play.mvc.Result;


/**
 * The interface ParSeqTraceRenderer defines rendering a {@code CompletionStage} from {@link ParSeqTaskStore}.
 *
 * @author Yinan Ding ([email protected])
 */
public interface ParSeqTraceRenderer {

  /**
   * The method render generates a {@code CompletionStage} from {@link ParSeqTaskStore}.
   *
   * @param context The HTTP Context
   * @param parSeqTaskStore The {@link ParSeqTaskStore} for getting ParSeq Tasks
   * @return The CompletionStage of Result
   */
  CompletionStage render(final Http.Context context, final ParSeqTaskStore parSeqTaskStore);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy