public interface LockManagerService
extends org.opendaylight.yangtools.yang.binding.RpcService
rpc try-lock { input { leaf lock-name { type string; } leaf time { type uint32; } leaf time-unit { type time-units; } } output; } rpc lock { input { leaf lock-name { type string; } } output; } rpc unlock { input { leaf lock-name { type string; } } output; }
Modifier and Type | Method and Description |
---|---|
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<LockOutput>> |
lock(LockInput input)
Method that checks if its locked already.
|
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<TryLockOutput>> |
tryLock(TryLockInput input)
Method that checks if its locked already.
|
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<UnlockOutput>> |
unlock(UnlockInput input)
Method that removes the lock from the list of locks
|
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<TryLockOutput>> tryLock(TryLockInput input)
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<LockOutput>> lock(LockInput input)
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<UnlockOutput>> unlock(UnlockInput input)
Copyright © 2019 OpenDaylight. All rights reserved.