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

com.vmlens.trace.agent.bootstrap.callback.SendEventForShortThreadId 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.gen.EventFactory;
import com.vmlens.trace.agent.bootstrap.threadQueue.QueueCollection;

public class SendEventForShortThreadId  extends SendEventImpl {

	private final short shortThreadId;

	
	public SendEventForShortThreadId(long myThreadId,QueueCollectionWrapper queueCollection, short shortThreadId,CallbackStatePerThread callbackStatePerThread) {
		super(myThreadId, queueCollection,callbackStatePerThread);
		this.shortThreadId = shortThreadId;
	}
	
	
	public void writeMethodEnterEventGen(final int slidingWindowId, final int methodId, final int methodCounter) {
		getQueueCollection().put( ID_Method , 

				EventFactory.createMethodEnterShortThreadIdEventGen( slidingWindowId, shortThreadId, methodId,methodCounter)  , slidingWindowId);

		
		
	}

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

				EventFactory.createMethodExitShortThreadIdEventGen( slidingWindowId, shortThreadId, methodId,methodCounter) , slidingWindowId );

	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy