public class TagOPCWriteRequest extends java.lang.Object implements OPCWriteRequest, AsyncWriteRequest<TagPath>
Modifier and Type | Method and Description |
---|---|
static TagOPCWriteRequest |
createAWV(ExecutableTag sourceTag,
ServerNodeId targetNodeId,
AsyncWriteRequest sourceWV)
Create an instance that wraps an existing AsyncWriteValue
|
static TagOPCWriteRequest |
createRaw(ExecutableTag sourceTag,
ServerNodeId targetNodeId,
java.lang.Object valToWrite)
Create an instance with a raw value.
|
java.util.Optional<IndexRange> |
getIndexRange()
If present, the node identified by
OPCWriteRequest.getNodeId() is an array this
value should be written to the element or elements at the given IndexRange . |
ServerNodeId |
getNodeId()
The id to write to
|
Quality |
getResult() |
TagPath |
getTarget() |
java.lang.Object |
getValue()
The value to write
|
boolean |
isReadAfterWrite() |
void |
setReadAfterWrite(boolean readAfterWrite) |
void |
setResult(Quality result) |
void |
setSuccess()
Mark the write as successful
|
boolean |
succeeded() |
void |
updateValueAfterWrite(QualifiedValue value) |
public static TagOPCWriteRequest createAWV(ExecutableTag sourceTag, ServerNodeId targetNodeId, AsyncWriteRequest sourceWV)
public static TagOPCWriteRequest createRaw(ExecutableTag sourceTag, ServerNodeId targetNodeId, java.lang.Object valToWrite)
public boolean isReadAfterWrite()
public void setReadAfterWrite(boolean readAfterWrite)
public void updateValueAfterWrite(QualifiedValue value)
public ServerNodeId getNodeId()
OPCWriteRequest
getNodeId
in interface OPCWriteRequest
public void setResult(Quality result)
setResult
in interface AsyncWriteRequest<TagPath>
public TagPath getTarget()
getTarget
in interface WriteRequest<TagPath>
public boolean succeeded()
public Quality getResult()
getResult
in interface AsyncWriteRequest<TagPath>
public void setSuccess()
AsyncWriteRequest
setSuccess
in interface AsyncWriteRequest<TagPath>
public java.lang.Object getValue()
OPCWriteRequest
getValue
in interface WriteRequest<TagPath>
getValue
in interface OPCWriteRequest
public java.util.Optional<IndexRange> getIndexRange()
OPCWriteRequest
OPCWriteRequest.getNodeId()
is an array this
value should be written to the element or elements at the given IndexRange
.getIndexRange
in interface OPCWriteRequest
IndexRange
to write this value to.