Coherence.C_Lock()

Signature

boolean C_Lock(String key, long timeout, boolean localOnly)

Domain

action

Description

Locks the object within a rule session. This call will wait for timeout. The timeout value of zero indicates wait indefinitely

Parameters

NameTypeDescription
keyStringA key that uniquely identifies a lock.
timeoutlongSpecify in milliseconds the time to wait for the lock.
localOnlybooleantrue if the lock is local to the local session, false if the lock is cluster wide

Returns

TypeDescription
booleanreturns true if the lock is acquired, false if not.

Cautions

none