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

org.hibernate.event.jfr.internal.CacheGetEvent Maven / Gradle / Ivy

There is a newer version: 7.0.0.Beta3
Show newest version
/*
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later.
 * See the lgpl.txt file in the root directory or .
 */
package org.hibernate.event.jfr.internal;

import org.hibernate.event.spi.HibernateMonitoringEvent;
import org.hibernate.internal.build.AllowNonPortable;

import jdk.jfr.Category;
import jdk.jfr.Description;
import jdk.jfr.Event;
import jdk.jfr.Label;
import jdk.jfr.Name;
import jdk.jfr.StackTrace;

@Name( CacheGetEvent.NAME )
@Label( "Cache Get Executed" )
@Category( "Hibernate ORM" )
@Description( "Cache Get Executed" )
@StackTrace(false)
@AllowNonPortable
public class CacheGetEvent extends Event implements HibernateMonitoringEvent {
	public static final String NAME = "org.hibernate.orm.CacheGet";

	@Label( "Session Identifier" )
	public String sessionIdentifier;

	@Label( "Entity Name" )
	public String entityName;

	@Label( "Collection Name" )
	public String collectionName;

	@Label( "Used Natural Id" )
	public boolean isNaturalId;

	@Label( "Region Name" )
	public String regionName;

	@Label( "Cache Get Execution Time" )
	public long executionTime;

	@Label("Cache Hit")
	public boolean hit;

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

	public transient long startedAt;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy