public static class JDBCLookupOptions.Builder extends Object
JDBCLookupOptions
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
JDBCLookupOptions |
build() |
JDBCLookupOptions.Builder |
setCacheExpireMs(long cacheExpireMs)
optional, lookup cache expire mills, over this time, the old data will expire.
|
JDBCLookupOptions.Builder |
setCacheMaxSize(long cacheMaxSize)
optional, lookup cache max size, over this value, the old data will be eliminated.
|
JDBCLookupOptions.Builder |
setMaxRetryTimes(int maxRetryTimes)
optional, max retry times for jdbc connector.
|
public JDBCLookupOptions.Builder setCacheMaxSize(long cacheMaxSize)
public JDBCLookupOptions.Builder setCacheExpireMs(long cacheExpireMs)
public JDBCLookupOptions.Builder setMaxRetryTimes(int maxRetryTimes)
public JDBCLookupOptions build()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.