DOFOperationwaitAcknowledged Method OpenDOF Object Access Library
Block the current thread until the operation is acknowledged or has completed, or until the specified timeout expires.

Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax

C#
public abstract void waitAcknowledged(
	int timeout
)

Parameters

timeout
Type: SystemInt32
Maximum time to wait, in milliseconds, for the operation to be acknowledged. Must be > = 0.
NOTE: Do not use the same value as the operation's timeout, since this introduces a race condition. Use
DOF.TIMEOUT_NEVER
to use on the operation's timeout value as the maximum wait time.
Exceptions

ExceptionCondition
DOFExceptionif this operation resulted in an exception.
DOFException
Remarks

Block the current thread until the operation is acknowledged or has completed, or until the specified timeout expires. Note that this is not the operation's timeout value but is the maximum time you are willing to wait. Use
DOF.TIMEOUT_NEVER
to use on the operation's timeout value as the maximum wait time. Do not use the same value as the operation's timeout, since this introduces a race condition.

An operation becomes acknowledged when the first response is received.

NOTE: Some operations never receive any responses, so they are never acknowledged. Examples: beginProvide, beginInterest, and beginQuery.

See Also

Reference