@PublicApi public final class GetWorkerOptions extends Object
BlockLocationPolicy.getWorker(GetWorkerOptions)
.Modifier and Type | Method and Description |
---|---|
static GetWorkerOptions |
defaults() |
boolean |
equals(Object o) |
long |
getBlockId() |
long |
getBlockSize() |
Iterable<BlockWorkerInfo> |
getBlockWorkerInfos() |
int |
hashCode() |
GetWorkerOptions |
setBlockId(long blockId) |
GetWorkerOptions |
setBlockSize(long blockSize) |
GetWorkerOptions |
setBlockWorkerInfos(List<BlockWorkerInfo> blockWorkerInfos) |
String |
toString() |
public static GetWorkerOptions defaults()
GetWorkerOptions
public Iterable<BlockWorkerInfo> getBlockWorkerInfos()
public long getBlockId()
public long getBlockSize()
public GetWorkerOptions setBlockWorkerInfos(List<BlockWorkerInfo> blockWorkerInfos)
blockWorkerInfos
- the block worker infospublic GetWorkerOptions setBlockId(long blockId)
blockId
- the block ID to setpublic GetWorkerOptions setBlockSize(long blockSize)
blockSize
- the block sizeCopyright © 2023. All Rights Reserved.