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

com.github.jy2.di.internal.Repeater Maven / Gradle / Ivy

There is a newer version: 0.0.39
Show newest version
package com.github.jy2.di.internal;

import java.lang.reflect.Method;

import com.github.jy2.di.annotations.Repeat;

public class Repeater {
	
	public Object object;
	public Method method;
	public Repeat repeat;
	public Thread thread;
	
	/**
	 * Shutdown = true indicates that repeater should be shut down.
	 */
	public boolean shutdown = false;
	
	public Repeater(Object object, Method method, Repeat parameters) {
		this.object = object;
		this.method = method;
		this.repeat = parameters;
	}
	
	/**
	 * Shuts down the repeater.
	 */
	public void shutdown() {
		shutdown = true;
		if(thread!=null) {
			thread.interrupt();
		}
		
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy