public class Named
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
name |
Modifier | Constructor and Description |
---|---|
protected |
Named(Named named) |
protected |
Named(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
static Named |
as(java.lang.String name)
Create a Named instance with provided name.
|
protected static void |
validate(java.lang.String name) |
Named |
withName(java.lang.String name)
Sets the name to be used for an operation.
|
protected Named(Named named)
protected Named(java.lang.String name)
public static Named as(java.lang.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(java.lang.String name)
name
- the name to use.NamedOperation
protected static void validate(java.lang.String name)