public class Named extends Object
Modifier | Constructor and Description |
---|---|
protected |
Named(Named named) |
protected |
Named(String name) |
Modifier and Type | Method and Description |
---|---|
static Named |
as(String name)
Create a Named instance with provided name.
|
protected static void |
validate(String name) |
Named |
withName(String name)
Sets the name to be used for an operation.
|
protected String name
public static Named as(String name)
name
- the processor name to be used. If null
a default processor name will be generated.Named
instance configured with nameTopologyException
- if an invalid name is specified; valid characters are ASCII alphanumerics, '.', '_' and '-'.public Named withName(String name)
name
- the name to use.NamedOperation
protected static void validate(String name)