@Singleton public class LockManagerServiceImpl extends Object implements LockManagerService
| Constructor and Description |
|---|
LockManagerServiceImpl(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
LockManagerUtils lockManagerUtils) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
getSynchronizerForLock(String lockName) |
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
|
@Inject
public LockManagerServiceImpl(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
LockManagerUtils lockManagerUtils)
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<LockOutput>> lock(LockInput input)
LockManagerServicelock in interface LockManagerServicepublic com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<TryLockOutput>> tryLock(TryLockInput input)
LockManagerServicetryLock in interface LockManagerServicepublic com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<UnlockOutput>> unlock(UnlockInput input)
LockManagerServiceunlock in interface LockManagerServicepublic CompletableFuture<Void> getSynchronizerForLock(String lockName)
Copyright © 2019 OpenDaylight. All rights reserved.