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

com.enonic.xp.trace.TraceEvent Maven / Gradle / Ivy

There is a newer version: 7.14.4
Show newest version
package com.enonic.xp.trace;

public final class TraceEvent
{
    public enum Type
    {
        START, END
    }

    private final Type type;

    private final Trace trace;

    private TraceEvent( final Type type, final Trace trace )
    {
        this.type = type;
        this.trace = trace;
    }

    public Type getType()
    {
        return this.type;
    }

    public Trace getTrace()
    {
        return this.trace;
    }

    public static TraceEvent start( final Trace trace )
    {
        return new TraceEvent( Type.START, trace );
    }

    public static TraceEvent end( final Trace trace )
    {
        return new TraceEvent( Type.END, trace );
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy