Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.jnape.palatable.dmutex;
 
 
 import static java.lang.String.format;
 
 
     public LockAcquisitionFailedException(Throwable cause) {
        super("Unable to acquire a lock"cause);
    }
        return new LockAcquisitionFailedException(cause);
    }
    public static LockAcquisitionFailedException lockAcquisitionFailed(Duration duration) {
        return new LockAcquisitionFailedException(new TimeoutException(format("Could not acquire a lock within %s"duration.toString())));
    }
New to GrepCode? Check out our FAQ X