Servertec
Foundation Classes
1.3.3 09/04/2005

stec.sfc.Win32
Class FileLockMode

java.lang.Object
  extended by stec.sfc.Win32.FileLockMode

public final class FileLockMode
extends java.lang.Object

The lock modes used by RandomAccessFile.lock()

Since:
1.2.0 12/03/2002

Field Summary
static int EXCLUSIVE_LOCK
          Request an exclusive lock.
static int FAIL_IMMEDIATELY
          Fail immediately if unable to acquire requested lock.
 
Constructor Summary
FileLockMode()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FAIL_IMMEDIATELY

public static final int FAIL_IMMEDIATELY
Fail immediately if unable to acquire requested lock.

Set to LOCKFILE_FAIL_IMMEDIATELY.


EXCLUSIVE_LOCK

public static final int EXCLUSIVE_LOCK
Request an exclusive lock.

If not specified a shared lock is requested.

Set to LOCKFILE_EXCLUSIVE_LOCK.

Constructor Detail

FileLockMode

public FileLockMode()

Servertec
Foundation Classes
1.3.3 09/04/2005

Copyright © 2001-2005 Servertec. All rights reserved.