DOFConnectionbeginReconnect Method (Int32, DOFConnectionConnectOperationListener, Object)OpenDOF Object Access Library
Re-open a connection, waiting up to timeout for the connection to be reestablished.

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

C#
public DOFOperationConnect beginReconnect(
	int timeout,
	DOFConnectionConnectOperationListener operationListener,
	Object context
)

Parameters

timeout
Type: SystemInt32
Maximum time to wait, in milliseconds, for the connection to be reestablished before calling the listener's complete() method. Note, however, that the connection may still occur if the underlying transport cannot cancel the connection request. Must be >= 0. Zero is allowed, in which case the listener complete() is immediately called indicating the current state.
operationListener
Type: org.opendof.core.oalDOFConnectionConnectOperationListener
An associated completion listener. May be null.
context
Type: SystemObject
Context data associated with the operation. The context may be retrieved with operation.getContext().

Return Value

Type: DOFOperationConnect
The new operation, or null if there is a related server that won't restart or a related connection that won't re-open.
Remarks

Re-open a connection, waiting up to timeout for the connection to be reestablished. However, control is returned to the caller while the connection is reestablished. The call may also establish a listener that will be called with information about the completion of the routine.

We recommend 30 seconds for Type.POINT connections. Will also restart any related server and re-open any related connection.

See Also

Reference