| 1 |
/* |
| 2 |
* Copyright 2004-2023 H2 Group. Multiple-Licensed under the MPL 2.0, |
| 3 |
* and the EPL 1.0 (https://h2database.com/html/license.html). |
| 4 |
* Initial Developer: H2 Group |
| 5 |
*/ |
| 6 |
package org.h2.store; |
| 7 |
|
| 8 |
public enum FileLockMethod { |
| 9 |
/** |
| 10 |
* This locking method means no locking is used at all. |
| 11 |
*/ |
| 12 |
NO, |
| 13 |
|
| 14 |
/** |
| 15 |
* This locking method means the cooperative file locking protocol should be |
| 16 |
* used. |
| 17 |
*/ |
| 18 |
FILE, |
| 19 |
|
| 20 |
/** |
| 21 |
* This locking method means a socket is created on the given machine. |
| 22 |
*/ |
| 23 |
SOCKET, |
| 24 |
|
| 25 |
/** |
| 26 |
* Use the file system to lock the file; don't use a separate lock file. |
| 27 |
*/ |
| 28 |
FS |
| 29 |
} |