com.ing.baker.runtime.javadsl.RecipeInstanceMetadata.scala Maven / Gradle / Ivy
The newest version!
package com.ing.baker.runtime.javadsl
import com.ing.baker.runtime.common.LanguageDataStructures.JavaApi
import com.ing.baker.runtime.{common, scaladsl}
case class RecipeInstanceMetadata(recipeId: String, recipeInstanceId: String, createdTime: Long) extends common.RecipeInstanceMetadata with JavaApi {
/**
* Returns the recipe id of the process.
*
* @return The recipe id of the process.
*/
def getRecipeId: String = recipeId
/**
* Returns the process identifier.
*
* @return The process identifier.
*/
def getRecipeInstanceId: String = recipeInstanceId
/**
* Returns the time the process was created.
*
* The timestamp is measured as the difference, in milliseconds, between
* the process created time and midnight, January 1, 1970 UTC.
*
* @return The time the process was created.
*/
def getCreatedTime: Long = createdTime
def asScala: scaladsl.RecipeInstanceMetadata =
scaladsl.RecipeInstanceMetadata(recipeId, recipeInstanceId, createdTime)
}