public static final class Options.Builder extends Object
Options.Builder
构建器限定符和类型 | 方法和说明 |
---|---|
Options |
build()
构建
Options |
Options.Builder |
enableTransactionSupport(Boolean enableTransactionSupport)
设置是否开启事务支持
|
static Options.Builder |
getInstance()
获取
Options.Builder 实例 |
Options.Builder |
prefix(String prefix)
设置 Key 前缀
|
Options.Builder |
serializer(Serializer serializer)
设置序列化实例
|
public static Options.Builder getInstance()
Options.Builder
实例Options.Builder
实例public Options.Builder prefix(String prefix)
prefix
- Key 前缀Options.Builder
实例public Options.Builder serializer(Serializer serializer)
serializer
- 序列化实例Options.Builder
实例Serializer
,
ByteArraySerializer
,
FastJsonJsonSerializer
,
GsonJsonSerializer
,
JacksonJsonSerializer
public Options.Builder enableTransactionSupport(Boolean enableTransactionSupport)
enableTransactionSupport
- 是否开启事务支持Options.Builder
实例Copyright © 2023 buession.com Inc.. All rights reserved.