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.String
assemblyFullName
Fully assembly qualified name: System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.String
assemblyShortName
Assembly name: System.Corestatic java.lang.String
className
Qualified class name: System.Threading.ReaderWriterLockSlimstatic JCType
classType
The 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 ReaderWriterLockSlim
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoReaderWriterLockSlim
, a cast assert is made to check if types are compatible.void
close()
void
Dispose()
void
EnterReadLock()
void
EnterUpgradeableReadLock()
void
EnterWriteLock()
void
ExitReadLock()
void
ExitUpgradeableReadLock()
void
ExitWriteLock()
int
getCurrentReadCount()
boolean
getIsReadLockHeld()
boolean
getIsUpgradeableReadLockHeld()
boolean
getIsWriteLockHeld()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class TypeLockRecursionPolicy
getRecursionPolicy()
int
getRecursiveReadCount()
int
getRecursiveUpgradeCount()
int
getRecursiveWriteCount()
int
getWaitingReadCount()
int
getWaitingUpgradeCount()
int
getWaitingWriteCount()
void
setJCOInstance(JCObject instance)
boolean
TryEnterReadLock(int millisecondsTimeout)
boolean
TryEnterReadLock(TimeSpan timeout)
boolean
TryEnterUpgradeableReadLock(int millisecondsTimeout)
boolean
TryEnterUpgradeableReadLock(TimeSpan timeout)
boolean
TryEnterWriteLock(int millisecondsTimeout)
boolean
TryEnterWriteLock(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.Throwable
Internal 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:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classNetObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static ReaderWriterLockSlim cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoReaderWriterLockSlim
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
ReaderWriterLockSlim
instance- 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.Throwable
ArgumentOutOfRangeException
ObjectDisposedException
ArgumentNullException
ArgumentException
NotImplementedException
CultureNotFoundException
IndexOutOfRangeException
MissingManifestResourceException
InvalidOperationException
LockRecursionException
WaitHandleCannotBeOpenedException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
-
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.Throwable
ArgumentOutOfRangeException
ObjectDisposedException
ArgumentNullException
ArgumentException
NotImplementedException
CultureNotFoundException
IndexOutOfRangeException
MissingManifestResourceException
InvalidOperationException
LockRecursionException
WaitHandleCannotBeOpenedException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
-
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.Throwable
ArgumentOutOfRangeException
ObjectDisposedException
ArgumentNullException
ArgumentException
NotImplementedException
CultureNotFoundException
IndexOutOfRangeException
MissingManifestResourceException
InvalidOperationException
LockRecursionException
WaitHandleCannotBeOpenedException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
-
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.Throwable
ArgumentOutOfRangeException
ObjectDisposedException
ArgumentNullException
ArgumentException
NotImplementedException
CultureNotFoundException
IndexOutOfRangeException
MissingManifestResourceException
InvalidOperationException
LockRecursionException
WaitHandleCannotBeOpenedException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
-
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.Throwable
ArgumentOutOfRangeException
ObjectDisposedException
ArgumentNullException
ArgumentException
NotImplementedException
CultureNotFoundException
IndexOutOfRangeException
MissingManifestResourceException
InvalidOperationException
LockRecursionException
WaitHandleCannotBeOpenedException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
-
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.Throwable
ArgumentOutOfRangeException
ObjectDisposedException
ArgumentNullException
ArgumentException
NotImplementedException
CultureNotFoundException
IndexOutOfRangeException
MissingManifestResourceException
InvalidOperationException
LockRecursionException
WaitHandleCannotBeOpenedException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
-
Dispose
public void Dispose() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, SynchronizationLockException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
SynchronizationLockException
-
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.Throwable
ArgumentOutOfRangeException
ObjectDisposedException
ArgumentNullException
ArgumentException
NotImplementedException
MissingManifestResourceException
InvalidOperationException
LockRecursionException
WaitHandleCannotBeOpenedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
AbandonedMutexException
-
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.Throwable
ArgumentOutOfRangeException
ObjectDisposedException
ArgumentNullException
ArgumentException
NotImplementedException
MissingManifestResourceException
InvalidOperationException
LockRecursionException
WaitHandleCannotBeOpenedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
AbandonedMutexException
-
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.Throwable
ArgumentOutOfRangeException
ObjectDisposedException
ArgumentNullException
ArgumentException
NotImplementedException
MissingManifestResourceException
InvalidOperationException
LockRecursionException
WaitHandleCannotBeOpenedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
AbandonedMutexException
-
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.Throwable
ObjectDisposedException
AbandonedMutexException
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
SynchronizationLockException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
-
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.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
SynchronizationLockException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
-
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.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
SynchronizationLockException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
-
close
public void close() throws java.lang.Exception
- Specified by:
close
in 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
-
-