com.bazaarvoice.ostrich.pool.PartitionContextSupplier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ostrich-core Show documentation
Show all versions of ostrich-core Show documentation
Core classes that form Ostrich
package com.bazaarvoice.ostrich.pool;
import com.bazaarvoice.ostrich.PartitionContext;
import java.lang.reflect.Method;
interface PartitionContextSupplier {
/**
* Builds a {@link PartitionContext} from the method arguments passed to the specified interface method.
*
* If the {@code method} argument's declaring class is not the public service interface this will return an empty
* partition context.
*/
PartitionContext forCall(Method method, Object... args);
}