public class LockRequestBuilder extends Object
LockRequest
easier.Constructor and Description |
---|
LockRequestBuilder() |
Modifier and Type | Method and Description |
---|---|
LockRequestBuilder |
addLockComponent(LockComponent component)
Add a lock component to the lock request
|
LockRequest |
build()
Get the constructed LockRequest.
|
LockRequestBuilder |
setTransactionId(long txnid)
Set the transaction id.
|
LockRequestBuilder |
setUser(String user) |
public LockRequest build()
public LockRequestBuilder setTransactionId(long txnid)
txnid
- transaction idpublic LockRequestBuilder setUser(String user)
public LockRequestBuilder addLockComponent(LockComponent component)
component
- to addCopyright © 2017 The Apache Software Foundation. All rights reserved.