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