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

com.vmlens.trace.agent.bootstrap.callback.SendEventForSmallThreadId Maven / Gradle / Ivy

There is a newer version: 1.1.5
Show newest version
package com.vmlens.trace.agent.bootstrap.callback;


import com.vmlens.trace.agent.bootstrap.event.RuntimeEvent;
import com.vmlens.trace.agent.bootstrap.event.gen.EventFactory;
import com.vmlens.trace.agent.bootstrap.threadQueue.QueueCollection;

public class SendEventForSmallThreadId extends SendEventImpl {

	private final byte mappedThreadId;

	public SendEventForSmallThreadId(long myThreadId,QueueCollectionWrapper queueCollection, byte mappedThreadId,CallbackStatePerThread callbackStatePerThread) {
		super(myThreadId, queueCollection,callbackStatePerThread);
		this.mappedThreadId = mappedThreadId;

	}

	public void writeMethodEnterEventGen(final int slidingWindowId, final int methodId, final int methodCounter) {
		getQueueCollection().put( ID_Method , 

				EventFactory.createMethodEnterSmallThreadIdEventGen( slidingWindowId, mappedThreadId, methodId,methodCounter), slidingWindowId);

		
		
	}

	public void writeMethodExitEventGen(final int slidingWindowId, final int methodId,final  int methodCounter) {
		getQueueCollection().put( ID_Method , 

				EventFactory.createMethodExitSmallThreadIdEventGen( slidingWindowId, mappedThreadId, methodId,methodCounter), slidingWindowId);

	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy