| Modifier and Type | Field and Description |
|---|---|
static TypeArg<AsyncFileLock> |
__TYPE_ARG |
| Constructor and Description |
|---|
AsyncFileLock(io.vertx.core.file.AsyncFileLock delegate) |
AsyncFileLock(Object delegate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
io.vertx.core.file.AsyncFileLock |
getDelegate() |
int |
hashCode() |
boolean |
isShared() |
io.reactivex.rxjava3.core.Single<Boolean> |
isValid()
Like
isValid() but the handler will be called when the operation completes or if an error occurs. |
boolean |
isValidBlocking()
Like
isValid() but blocking. |
static AsyncFileLock |
newInstance(io.vertx.core.file.AsyncFileLock arg) |
boolean |
overlaps(long position,
long size) |
long |
position() |
io.reactivex.rxjava3.core.Completable |
release()
Like
release() but the handler will be called when the operation completes or if an error occurs. |
void |
releaseBlocking()
Like
release() but blocking. |
io.reactivex.rxjava3.core.Single<Boolean> |
rxIsValid()
Like
isValid() but the handler will be called when the operation completes or if an error occurs. |
io.reactivex.rxjava3.core.Completable |
rxRelease()
Like
release() but the handler will be called when the operation completes or if an error occurs. |
long |
size() |
String |
toString() |
public static final TypeArg<AsyncFileLock> __TYPE_ARG
public AsyncFileLock(io.vertx.core.file.AsyncFileLock delegate)
public AsyncFileLock(Object delegate)
public io.vertx.core.file.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() but blocking.public io.reactivex.rxjava3.core.Single<Boolean> isValid()
isValid() but the handler will be called when the operation completes or if an error occurs.public io.reactivex.rxjava3.core.Single<Boolean> rxIsValid()
isValid() but the handler will be called when the operation completes or if an error occurs.public void releaseBlocking()
release() but blocking.public io.reactivex.rxjava3.core.Completable release()
release() but the handler will be called when the operation completes or if an error occurs.public io.reactivex.rxjava3.core.Completable rxRelease()
release() but the handler will be called when the operation completes or if an error occurs.public static AsyncFileLock newInstance(io.vertx.core.file.AsyncFileLock arg)
Copyright © 2022 Eclipse. All rights reserved.