public interface AllocationStrategy
AllocationStrategy
defines an interface of resource allocation strategies.Modifier and Type | Method and Description |
---|---|
<T> T |
next(java.util.Collection<T> domain,
java.util.Collection<T> free,
java.util.Collection<T> used,
java.util.Map<java.lang.String,java.lang.String> attributes)
Chooses an object.
|
<T> T next(java.util.Collection<T> domain, java.util.Collection<T> free, java.util.Collection<T> used, java.util.Map<java.lang.String,java.lang.String> attributes)
T
- type of objects.domain
- all available objects.free
- free objects.used
- used objects.attributes
- the parameters.null
.