All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.apple.alpha.core.DistributedLock

java.lang.Object
   |
   +----com.apple.alpha.core.NativeObject
           |
           +----com.apple.alpha.core.DistributedLock

public class DistributedLock
extends NativeObject
This class wraps the Objective-C class NSDistributedLock.


Constructor Index

 o DistributedLock()
This default constructor is equivalent to Objective-C's [[NSDistributedLock alloc] init].
 o DistributedLock(boolean, int)
Protected constructor used by the bridge to wrap an Objective-C object.
 o DistributedLock(String)
This constructor has the same effect as calling - initWithPath: on a newly allocated object.

Method Index

 o breakLock()
A wrapper for the - breakLock Objective-C instance method.
 o lockDate()
A wrapper for the - lockDate Objective-C instance method.
 o lockWithPath(String)
A wrapper for the + lockWithPath: Objective-C class method.
 o tryLock()
A wrapper for the - tryLock Objective-C instance method.
 o unlock()
A wrapper for the - unlock Objective-C instance method.

Constructors

 o DistributedLock
 protected DistributedLock(boolean shouldAllocate,
                           int objcObject)
Protected constructor used by the bridge to wrap an Objective-C object. It should never be invoked directly.

 o DistributedLock
 public DistributedLock()
This default constructor is equivalent to Objective-C's [[NSDistributedLock alloc] init].

 o DistributedLock
 public DistributedLock(String path)
This constructor has the same effect as calling - initWithPath: on a newly allocated object.

Methods

 o lockWithPath
 public static native DistributedLock lockWithPath(String path)
A wrapper for the + lockWithPath: Objective-C class method.

 o tryLock
 public native boolean tryLock()
A wrapper for the - tryLock Objective-C instance method.

 o unlock
 public native void unlock()
A wrapper for the - unlock Objective-C instance method.

 o breakLock
 public native void breakLock()
A wrapper for the - breakLock Objective-C instance method.

 o lockDate
 public native Date lockDate()
A wrapper for the - lockDate Objective-C instance method.


All Packages  Class Hierarchy  This Package  Previous  Next  Index