@InterfaceAudience.Public @InterfaceStability.Evolving public abstract class OperationWithAttributes extends Operation implements Attributes
Modifier and Type | Field and Description |
---|---|
static String |
ID_ATRIBUTE |
Constructor and Description |
---|
OperationWithAttributes() |
Modifier and Type | Method and Description |
---|---|
byte[] |
getAttribute(String name)
Gets an attribute
|
protected long |
getAttributeSize() |
Map<String,byte[]> |
getAttributesMap()
Gets all attributes
|
String |
getId()
This method allows you to retrieve the identifier for the operation if one
was set.
|
OperationWithAttributes |
setAttribute(String name,
byte[] value)
Sets an attribute.
|
OperationWithAttributes |
setId(String id)
This method allows you to set an identifier on an operation.
|
public static final String ID_ATRIBUTE
public OperationWithAttributes setAttribute(String name, byte[] value)
Attributes
setAttribute
in interface Attributes
name
- attribute namevalue
- attribute valuepublic byte[] getAttribute(String name)
Attributes
getAttribute
in interface Attributes
name
- attribute namepublic Map<String,byte[]> getAttributesMap()
Attributes
getAttributesMap
in interface Attributes
protected long getAttributeSize()
public OperationWithAttributes setId(String id)
id
- id to set for the scanpublic String getId()