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

The ThreadGate type exposes the following members.

Constructors

  NameDescription
Public methodThreadGate
Allocates unnamed data slots on threads to store local thread counter values and returns new instance of ThreadGate.

Methods

  NameDescription
Public methodBarEntry
Bar entry of the thread gate by other threads, but do not wait for the gate to close.
Public methodClose
Close the thread gate.
Protected methodDecrementThreadLocalCount
Decrement the long value of the LocalDataStoreSlot for the current thread by one.
Public methodDestroy
Destroy the thread gate.
Protected methodDoWait
Wait up to the specified number of milliseconds for notification.
Public methodEnter
Enter the thread gate.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExit
Exit the gate.
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Protected methodGetThreadLocalCount
Obtain the long value stored in the LocalDataStoreSlot.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodIncrementThreadLocalCount
Increment the long value from the LocalDataStoreSlot for the current thread by one.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOpen
After entry into the ThreadGate is restricted by a call to BarEntry() or Close(), it can be re-opened by calling this method.
Protected methodSetThreadLocalCount
Set the long value to be stored in the LocalDataStoreSlot.
Public methodToString
Provide a human-readable representation of this ThreadGate.
(Overrides Object..::..ToString()()()().)
Protected methodUpdateStatus
Update the current thread gate status, without changing the active count.

Properties

  NameDescription
Public propertyActiveCount
The number of unmatched completed Enter calls.
Public propertyCloseCount
The number of unmatched completed Close/BarEntry calls.
Protected propertyClosingThread
The thread that is closing the gates.
Public propertyIsActiveThread
Determine if the current thread has entered and not exited the thread gate.
Public propertyIsClosedByCurrentThread
Determines if the current thread have Closed the gate but not yet Opened the Gate.
Public propertyIsClosingThread
Determine if the current thread has closed and not opened the the thread gate.
Public propertyIsEnteredByCurrentThread
Determine if the current thread has entered and not exited the thread gate.
Public propertyStatus
The current thread gate status.
Protected propertyVersion
The total number of times the gate has been fully opened.

See Also