Oracle® Coherence .NET API Reference Release 3.7.1
E22844-03

The Gate type exposes the following members.

Methods

  NameDescription
Close
Tries to acquire the exlusive lock, the attempt is willing to wait up the specified millis or -1 to wait infinite.
Enter
Tries to acquire the non-exlusive lock, the attempt is willing to wait up the specified millis or -1 to wait infinite.
Exit
Releases the non-exlusive lock. If the non-exlusive lock has no more matching Enter(millis) from any Thread the exlusive lock is released so that Threas wanting to Close the Gate can proceed.
Open
Releases the exlusive lock. If the exlusive lock has no more matching Close(millis) the exlusive lock is released. And Threas waiting to Enter(millis) or Close(millis) will continue executing. If the thread currently is also holding the non-exlusive lock, the Thread will imediatly Enter the lock. The thread will have to match all calls to Enter(millis) with the corresponding count of Exit().

See Also