public class LockComponentBuilder extends Object
LockComponent
sConstructor and Description |
---|
LockComponentBuilder() |
Modifier and Type | Method and Description |
---|---|
LockComponent |
build()
Get the constructed lock component.
|
LockComponentBuilder |
setDbName(String dbName)
Set the database name.
|
LockComponentBuilder |
setExclusive()
Set the lock to be exclusive.
|
LockComponentBuilder |
setPartitionName(String partitionName)
Set the partition name.
|
LockComponentBuilder |
setSemiShared()
Set the lock to be semi-shared.
|
LockComponentBuilder |
setShared()
Set the lock to be shared.
|
LockComponentBuilder |
setTableName(String tableName)
Set the table name.
|
public LockComponentBuilder setExclusive()
public LockComponentBuilder setSemiShared()
public LockComponentBuilder setShared()
public LockComponentBuilder setDbName(String dbName)
dbName
- database namepublic LockComponentBuilder setTableName(String tableName)
tableName
- table namepublic LockComponentBuilder setPartitionName(String partitionName)
partitionName
- partition namepublic LockComponent build()
Copyright © 2017 The Apache Software Foundation. All rights reserved.