类 SslContextAutoRefreshBuilder<T>
java.lang.Object
org.apache.pulsar.common.util.SslContextAutoRefreshBuilder<T>
- 类型参数:
T
- type of SSLContext
- 直接已知子类:
DefaultSslContextBuilder
,NetSslContextBuilder
,NettyClientSslContextRefresher
,NettyServerSslContextBuilder
,NettySSLContextAutoRefreshBuilder
Auto refresher and builder of SSLContext.
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明get()
It updates SSLContext at every configured refresh time and returns updated SSLContext.protected abstract T
Returns cached SSLContext.protected abstract boolean
Returns whether the key files modified after a refresh time, and context need update.protected abstract T
update()
updates and returns cached SSLContext.
-
字段详细资料
-
refreshTime
protected final long refreshTime -
lastRefreshTime
protected long lastRefreshTime
-
-
构造器详细资料
-
SslContextAutoRefreshBuilder
public SslContextAutoRefreshBuilder(long certRefreshInSec)
-
-
方法详细资料
-
update
updates and returns cached SSLContext.- 返回:
- 抛出:
GeneralSecurityException
IOException
-
getSslContext
Returns cached SSLContext.- 返回:
-
needUpdate
protected abstract boolean needUpdate()Returns whether the key files modified after a refresh time, and context need update.- 返回:
- true if files modified
-
get
It updates SSLContext at every configured refresh time and returns updated SSLContext.- 返回:
-