Constructs a new BoundTask.
Optionalproperties: IBoundTaskProperties to set
OptionallowerThe OracleJob to execute for the lower bound value.
The value to use for the lower bound. Can be set to a ${CACHE_KEY}.
OptionalonThe OracleJob to execute if the lower bound is exceeded.
The value to use if the lower bound is exceeded. Can be set to a ${CACHE_KEY}.
OptionalonThe OracleJob to execute if the upper bound is exceeded.
The value to use if the upper bound is exceeded. Can be set to a ${CACHE_KEY}.
OptionalupperThe OracleJob to execute for the upper bound value.
The value to use for the upper bound. Can be set to a ${CACHE_KEY}.
Converts this BoundTask to JSON.
JSON object
StaticcreateCreates a new BoundTask instance using the specified properties.
Optionalproperties: IBoundTaskProperties to set
BoundTask instance
StaticdecodeDecodes a BoundTask message from the specified reader or buffer.
Reader or buffer to decode from
Optionallength: numberMessage length if known beforehand
BoundTask
StaticdecodeDecodes a BoundTask message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
BoundTask
StaticencodeEncodes the specified BoundTask message. Does not implicitly {@apilink oracle_job.OracleJob.BoundTask.verify|verify} messages.
BoundTask message or plain object to encode
Optionalwriter: WriterWriter to encode to
Writer
StaticencodeEncodes the specified BoundTask message, length delimited. Does not implicitly {@apilink oracle_job.OracleJob.BoundTask.verify|verify} messages.
BoundTask message or plain object to encode
Optionalwriter: WriterWriter to encode to
Writer
StaticfromCreates a BoundTask message from a plain object. Also converts values to their respective internal types.
Plain object
BoundTask
StaticgetGets the default type url for BoundTask
OptionaltypeUrlPrefix: stringyour custom typeUrlPrefix(default "type.googleapis.com")
The default type url
StatictoCreates a plain object from a BoundTask message. Also converts values to other types if specified.
BoundTask
Optionaloptions: IConversionOptionsConversion options
Plain object
StaticverifyVerifies a BoundTask message.
Plain object to verify
null if valid, otherwise the reason why it is not
Bound the running result to an upper/lower bound. This is typically the last task in an OracleJob.
Input: The current running numerical result.
Returns: The running result bounded to an upper or lower bound if it exceeds a given threshold.
Example: Bound the running result to a value between 0.90 and 1.10