Package | Description |
---|---|
io.vertx.core.file |
Modifier and Type | Method and Description |
---|---|
AsyncFileLock |
AsyncFile.tryLock()
Try to acquire a non-shared lock on the entire file.
|
AsyncFileLock |
AsyncFile.tryLock(long position,
long size,
boolean shared)
Try to acquire a lock on a portion of this file.
|
Modifier and Type | Method and Description |
---|---|
Future<AsyncFileLock> |
AsyncFile.lock()
Acquire a non-shared lock on the entire file.
|
Future<AsyncFileLock> |
AsyncFile.lock(long position,
long size,
boolean shared)
Acquire a lock on a portion of this file.
|
Modifier and Type | Method and Description |
---|---|
void |
AsyncFile.lock(Handler<AsyncResult<AsyncFileLock>> handler)
Like
AsyncFile.lock() but the handler will be called when the operation is complete or if an error occurs. |
void |
AsyncFile.lock(long position,
long size,
boolean shared,
Handler<AsyncResult<AsyncFileLock>> handler)
Like
AsyncFile.lock(long, long, boolean) but the handler will be called when the operation is complete or if an error occurs. |
Copyright © 2023 Eclipse. All rights reserved.