Java.Nio.Channels.FileLock Members

The members of Java.Nio.Channels.FileLock are listed below.

See Also: Inherited members from Java.Lang.Object

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.
Constructs a new file lock instance for a given channel.

Public Properties

[read-only]
IsSharedbool. Indicates if the file lock is shared with other processes or if it is exclusive.
[read-only]
abstract
IsValidbool. Indicates whether this lock is a valid file lock.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

AcquiredBy() : IChannel
Documentation for this section has not yet been entered.
Channel() : FileChannel
Returns the lock's Java.Nio.Channels.FileChannel.
Close()
Calls FileLock.Release for AutoCloseable.
Overlaps(long, long) : bool
Indicates if the receiver's lock region overlaps the region described in the parameter list.
Position() : long
Returns the lock's starting position in the file.
abstract
Release()
Releases this particular lock on the file.
Size() : long
Returns the length of the file lock in bytes.
override
ToString() : string
Returns a string that shows the details of the lock suitable for debugging.