@PublicApi @NotThreadSafe public final class CreateDirectoryOptions extends Object
Modifier and Type | Method and Description |
---|---|
static CreateDirectoryOptions |
defaults() |
boolean |
equals(Object o) |
CommonOptions |
getCommonOptions() |
Mode |
getMode() |
long |
getTtl() |
TtlAction |
getTtlAction() |
WriteType |
getWriteType() |
int |
hashCode() |
boolean |
isAllowExists() |
boolean |
isRecursive() |
CreateDirectoryOptions |
setAllowExists(boolean allowExists) |
CreateDirectoryOptions |
setCommonOptions(CommonOptions options) |
CreateDirectoryOptions |
setMode(Mode mode) |
CreateDirectoryOptions |
setRecursive(boolean recursive) |
CreateDirectoryOptions |
setTtl(long ttl) |
CreateDirectoryOptions |
setTtlAction(TtlAction ttlAction) |
CreateDirectoryOptions |
setWriteType(WriteType writeType) |
String |
toString() |
CreateDirectoryTOptions |
toThrift() |
public static CreateDirectoryOptions defaults()
CreateDirectoryOptions
public CommonOptions getCommonOptions()
public Mode getMode()
public WriteType getWriteType()
public boolean isAllowExists()
public long getTtl()
public boolean isRecursive()
public CreateDirectoryOptions setCommonOptions(CommonOptions options)
options
- the common optionspublic CreateDirectoryOptions setAllowExists(boolean allowExists)
allowExists
- the allowExists flag value to use; it specifies whether an exception
should be thrown if the directory being made already exists.public CreateDirectoryOptions setMode(Mode mode)
mode
- the mode to be setpublic CreateDirectoryOptions setRecursive(boolean recursive)
recursive
- the recursive flag value to use; it specifies whether parent directories
should be created if they do not already existpublic CreateDirectoryOptions setTtl(long ttl)
ttl
- the TTL (time to live) value to use; it identifies duration (in milliseconds) the
created directory should be kept around before it is automatically deleted,
no matter whether the file is pinnedpublic CreateDirectoryOptions setTtlAction(TtlAction ttlAction)
ttlAction
- the TtlAction
to usepublic CreateDirectoryOptions setWriteType(WriteType writeType)
writeType
- the write type to usepublic CreateDirectoryTOptions toThrift()
Copyright © 2023. All Rights Reserved.