Constructor and Description |
---|
LockResult(boolean success,
LockInfo lockInfo) |
Modifier and Type | Method and Description |
---|---|
static LockResult |
acquired(Path path,
String lockedBy) |
static LockResult |
error() |
static LockResult |
failed(LockInfo lockInfo) |
LockInfo |
getLockInfo() |
boolean |
isSuccess() |
static LockResult |
released(Path path) |
public LockResult(boolean success, LockInfo lockInfo)
public static LockResult acquired(Path path, String lockedBy)
public static LockResult released(Path path)
public static LockResult failed(LockInfo lockInfo)
public static LockResult error()
public boolean isSuccess()
public LockInfo getLockInfo()
Copyright © 2012–2018 JBoss by Red Hat. All rights reserved.