Package system.threading
Class ReaderWriterLockSlim
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.threading.ReaderWriterLockSlim
-
- All Implemented Interfaces:
java.lang.AutoCloseable,IJCOBridgeReflected
public class ReaderWriterLockSlim extends NetObject implements java.lang.AutoCloseable
The base .NET class managing System.Threading.ReaderWriterLockSlim, System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Threading.ReaderWriterLockSlim
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.StringassemblyShortNameAssembly name: System.Corestatic java.lang.StringclassNameQualified class name: System.Threading.ReaderWriterLockSlimstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description ReaderWriterLockSlim()ReaderWriterLockSlim(java.lang.Object instance)Internal constructor.ReaderWriterLockSlim(LockRecursionPolicy recursionPolicy)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReaderWriterLockSlimcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoReaderWriterLockSlim, a cast assert is made to check if types are compatible.voidclose()voidDispose()voidEnterReadLock()voidEnterUpgradeableReadLock()voidEnterWriteLock()voidExitReadLock()voidExitUpgradeableReadLock()voidExitWriteLock()intgetCurrentReadCount()booleangetIsReadLockHeld()booleangetIsUpgradeableReadLockHeld()booleangetIsWriteLockHeld()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypeLockRecursionPolicygetRecursionPolicy()intgetRecursiveReadCount()intgetRecursiveUpgradeCount()intgetRecursiveWriteCount()intgetWaitingReadCount()intgetWaitingUpgradeCount()intgetWaitingWriteCount()voidsetJCOInstance(JCObject instance)booleanTryEnterReadLock(int millisecondsTimeout)booleanTryEnterReadLock(TimeSpan timeout)booleanTryEnterUpgradeableReadLock(int millisecondsTimeout)booleanTryEnterUpgradeableReadLock(TimeSpan timeout)booleanTryEnterWriteLock(int millisecondsTimeout)booleanTryEnterWriteLock(TimeSpan timeout)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Core- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Threading.ReaderWriterLockSlim- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ReaderWriterLockSlim
public ReaderWriterLockSlim(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
ReaderWriterLockSlim
public ReaderWriterLockSlim() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
ReaderWriterLockSlim
public ReaderWriterLockSlim(LockRecursionPolicy recursionPolicy) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classNetObject- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static ReaderWriterLockSlim cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoReaderWriterLockSlim, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
ReaderWriterLockSliminstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
TryEnterReadLock
public boolean TryEnterReadLock(int millisecondsTimeout) throws java.lang.Throwable, ArgumentOutOfRangeException, ObjectDisposedException, ArgumentNullException, ArgumentException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, MissingManifestResourceException, InvalidOperationException, LockRecursionException, WaitHandleCannotBeOpenedException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionObjectDisposedExceptionArgumentNullExceptionArgumentExceptionNotImplementedExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionInvalidOperationExceptionLockRecursionExceptionWaitHandleCannotBeOpenedExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledException
-
TryEnterReadLock
public boolean TryEnterReadLock(TimeSpan timeout) throws java.lang.Throwable, ArgumentOutOfRangeException, ObjectDisposedException, ArgumentNullException, ArgumentException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, MissingManifestResourceException, InvalidOperationException, LockRecursionException, WaitHandleCannotBeOpenedException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException
- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionObjectDisposedExceptionArgumentNullExceptionArgumentExceptionNotImplementedExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionInvalidOperationExceptionLockRecursionExceptionWaitHandleCannotBeOpenedExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledException
-
TryEnterUpgradeableReadLock
public boolean TryEnterUpgradeableReadLock(int millisecondsTimeout) throws java.lang.Throwable, ArgumentOutOfRangeException, ObjectDisposedException, ArgumentNullException, ArgumentException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, MissingManifestResourceException, InvalidOperationException, LockRecursionException, WaitHandleCannotBeOpenedException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionObjectDisposedExceptionArgumentNullExceptionArgumentExceptionNotImplementedExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionInvalidOperationExceptionLockRecursionExceptionWaitHandleCannotBeOpenedExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledException
-
TryEnterUpgradeableReadLock
public boolean TryEnterUpgradeableReadLock(TimeSpan timeout) throws java.lang.Throwable, ArgumentOutOfRangeException, ObjectDisposedException, ArgumentNullException, ArgumentException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, MissingManifestResourceException, InvalidOperationException, LockRecursionException, WaitHandleCannotBeOpenedException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException
- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionObjectDisposedExceptionArgumentNullExceptionArgumentExceptionNotImplementedExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionInvalidOperationExceptionLockRecursionExceptionWaitHandleCannotBeOpenedExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledException
-
TryEnterWriteLock
public boolean TryEnterWriteLock(int millisecondsTimeout) throws java.lang.Throwable, ArgumentOutOfRangeException, ObjectDisposedException, ArgumentNullException, ArgumentException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, MissingManifestResourceException, InvalidOperationException, LockRecursionException, WaitHandleCannotBeOpenedException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionObjectDisposedExceptionArgumentNullExceptionArgumentExceptionNotImplementedExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionInvalidOperationExceptionLockRecursionExceptionWaitHandleCannotBeOpenedExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledException
-
TryEnterWriteLock
public boolean TryEnterWriteLock(TimeSpan timeout) throws java.lang.Throwable, ArgumentOutOfRangeException, ObjectDisposedException, ArgumentNullException, ArgumentException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, MissingManifestResourceException, InvalidOperationException, LockRecursionException, WaitHandleCannotBeOpenedException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException
- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionObjectDisposedExceptionArgumentNullExceptionArgumentExceptionNotImplementedExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionInvalidOperationExceptionLockRecursionExceptionWaitHandleCannotBeOpenedExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledException
-
Dispose
public void Dispose() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, SynchronizationLockException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionSynchronizationLockException
-
EnterReadLock
public void EnterReadLock() throws java.lang.Throwable, ArgumentOutOfRangeException, ObjectDisposedException, ArgumentNullException, ArgumentException, NotImplementedException, MissingManifestResourceException, InvalidOperationException, LockRecursionException, WaitHandleCannotBeOpenedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, AbandonedMutexException- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionObjectDisposedExceptionArgumentNullExceptionArgumentExceptionNotImplementedExceptionMissingManifestResourceExceptionInvalidOperationExceptionLockRecursionExceptionWaitHandleCannotBeOpenedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionAbandonedMutexException
-
EnterUpgradeableReadLock
public void EnterUpgradeableReadLock() throws java.lang.Throwable, ArgumentOutOfRangeException, ObjectDisposedException, ArgumentNullException, ArgumentException, NotImplementedException, MissingManifestResourceException, InvalidOperationException, LockRecursionException, WaitHandleCannotBeOpenedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, AbandonedMutexException- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionObjectDisposedExceptionArgumentNullExceptionArgumentExceptionNotImplementedExceptionMissingManifestResourceExceptionInvalidOperationExceptionLockRecursionExceptionWaitHandleCannotBeOpenedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionAbandonedMutexException
-
EnterWriteLock
public void EnterWriteLock() throws java.lang.Throwable, ArgumentOutOfRangeException, ObjectDisposedException, ArgumentNullException, ArgumentException, NotImplementedException, MissingManifestResourceException, InvalidOperationException, LockRecursionException, WaitHandleCannotBeOpenedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, AbandonedMutexException- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionObjectDisposedExceptionArgumentNullExceptionArgumentExceptionNotImplementedExceptionMissingManifestResourceExceptionInvalidOperationExceptionLockRecursionExceptionWaitHandleCannotBeOpenedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionAbandonedMutexException
-
ExitReadLock
public void ExitReadLock() throws java.lang.Throwable, ObjectDisposedException, AbandonedMutexException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, SynchronizationLockException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException- Throws:
java.lang.ThrowableObjectDisposedExceptionAbandonedMutexExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionSynchronizationLockExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledException
-
ExitUpgradeableReadLock
public void ExitUpgradeableReadLock() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, SynchronizationLockException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionSynchronizationLockExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledException
-
ExitWriteLock
public void ExitWriteLock() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, SynchronizationLockException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionSynchronizationLockExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledException
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
getIsReadLockHeld
public boolean getIsReadLockHeld() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getIsUpgradeableReadLockHeld
public boolean getIsUpgradeableReadLockHeld() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getIsWriteLockHeld
public boolean getIsWriteLockHeld() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getCurrentReadCount
public int getCurrentReadCount() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getRecursiveReadCount
public int getRecursiveReadCount() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getRecursiveUpgradeCount
public int getRecursiveUpgradeCount() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getRecursiveWriteCount
public int getRecursiveWriteCount() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getWaitingReadCount
public int getWaitingReadCount() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getWaitingUpgradeCount
public int getWaitingUpgradeCount() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getWaitingWriteCount
public int getWaitingWriteCount() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getRecursionPolicy
public LockRecursionPolicy getRecursionPolicy() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-