public static class IPojoFactory.RetryNameGenerator extends java.lang.Object implements IPojoFactory.NameGenerator
IPojoFactory.NameGenerator
, and call it in sequence until an unused value is found.Constructor and Description |
---|
RetryNameGenerator(IPojoFactory.NameGenerator delegate) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
generate(Factory factory,
java.util.List<java.lang.String> reserved) |
void |
setMaximum(long maximum) |
public RetryNameGenerator(IPojoFactory.NameGenerator delegate)
public void setMaximum(long maximum)
public java.lang.String generate(Factory factory, java.util.List<java.lang.String> reserved) throws UnacceptableConfiguration
generate
in interface IPojoFactory.NameGenerator
factory
- Factory called to create the instancereserved
- List of reserved (already used) instance names.
This has to be used tp ensure generated name is unique among all other instances.UnacceptableConfiguration
Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.