public class AsyncFileLock extends Object
| Modifier and Type | Field and Description |
|---|---|
static io.vertx.lang.rx.TypeArg<AsyncFileLock> |
__TYPE_ARG |
| Constructor and Description |
|---|
AsyncFileLock(AsyncFileLock delegate) |
AsyncFileLock(Object delegate) |
public static final io.vertx.lang.rx.TypeArg<AsyncFileLock> __TYPE_ARG
public AsyncFileLock(AsyncFileLock delegate)
public AsyncFileLock(Object delegate)
public AsyncFileLock getDelegate()
public long position()
public long size()
public boolean isShared()
true if this lock is shared, otherwise falsepublic boolean overlaps(long position,
long size)
position - size - true if this lock overlaps with the range described by position and size, otherwise falsepublic boolean isValidBlocking()
isValid(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>>) but blocking.public void isValid(Handler<AsyncResult<Boolean>> handler)
isValid(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>>) but the handler will be called when the operation completes or if an error occurs.handler - public void isValid()
isValid(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>>) but the handler will be called when the operation completes or if an error occurs.public Single<Boolean> rxIsValid()
isValid(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>>) but the handler will be called when the operation completes or if an error occurs.public void releaseBlocking()
release(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>) but blocking.public void release(Handler<AsyncResult<Void>> handler)
release(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>) but the handler will be called when the operation completes or if an error occurs.handler - public void release()
release(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>) but the handler will be called when the operation completes or if an error occurs.public Completable rxRelease()
release(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>) but the handler will be called when the operation completes or if an error occurs.public static AsyncFileLock newInstance(AsyncFileLock arg)
Copyright © 2023 Eclipse. All rights reserved.