Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
12c (12.2.1.4.0)
E90869-02

The Gate type exposes the following members.

Methods

  NameDescription
Public methodClose
Tries to acquire the exclusive lock, the attempt is willing to wait up the specified millis or -1 to wait infinite.
Public methodEnter
Tries to acquire the non-exclusive lock, the attempt is willing to wait up the specified millis or -1 to wait infinite.
Public methodExit
Releases the non-exclusive lock. If the non-exclusive lock has no more matching Enter(millis) from any thread the exclusive lock is released so that threads wanting to Close the Gate can proceed.
Public methodOpen
Releases the exclusive lock. If the exclusive lock has no more matching Close(millis) the exclusive lock is released. Any Threads waiting to Enter(millis) or Close(millis) will continue executing. If the thread currently is also holding the non-exclusive lock, the thread will immediately Enter the lock. The thread will have to match all calls to Enter(millis) with the corresponding count of Exit().

Properties

  NameDescription
Public propertyIsClosedByCurrentThread
Determines if the current thread has Closed the Gate but not yet Opened the Gate.
Public propertyIsEnteredByCurrentThread
Determines if the current thread has Entered, but not yet Exited the Gate.

See Also