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) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
AsyncFileLock |
getDelegate() |
int |
hashCode() |
boolean |
isShared() |
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(AsyncFileLock arg) |
boolean |
overlaps(long position,
long size) |
long |
position() |
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. |
Single<Boolean> |
rxIsValid()
Like
isValid() but the handler will be called when the operation completes or if an error occurs. |
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 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 false
public boolean overlaps(long position, long size)
position
- size
- true
if this lock overlaps with the range described by position
and size
, otherwise false
public boolean isValidBlocking()
isValid()
but blocking.public Single<Boolean> isValid()
isValid()
but the handler
will be called when the operation completes or if an error occurs.public 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 Completable release()
release()
but the handler
will be called when the operation completes or if an error occurs.public Completable rxRelease()
release()
but the handler
will be called when the operation completes or if an error occurs.public static AsyncFileLock newInstance(AsyncFileLock arg)
Copyright © 2024 Eclipse. All rights reserved.