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

com.github.blackshadowwalker.spring.distributelock.LockKeyGenerator Maven / Gradle / Ivy

package com.github.blackshadowwalker.spring.distributelock;

import java.lang.reflect.Method;

/**
 * Created by ASUS on 2016/8/16.
 */
public interface LockKeyGenerator {

	/**
	 * Generate a key for the given method and its parameters.
	 * 
	 * @param target
	 *            the target instance
	 * @param method
	 *            the method being called
	 * @param params
	 *            the method parameters (with any var-args expanded)
	 * @return a generated key
	 */
	Object generate(Object target, Method method, Object... params);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy