public final class ClassResolvers
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static ClassResolver |
cacheDisabled(java.lang.ClassLoader classLoader)
缓存禁用
|
static ClassResolver |
softCachingConcurrentResolver(java.lang.ClassLoader classLoader)
当我们不担心班级卸载时,积极的并发缓存适用于共享缓存
|
static ClassResolver |
softCachingResolver(java.lang.ClassLoader classLoader)
当我们不担心类卸载时,非高速缓存有利于非共享缓存
|
static ClassResolver |
weakCachingConcurrentResolver(java.lang.ClassLoader classLoader)
当我们担心班级卸载时,非积极的并发缓存适用于共享缓存
|
static ClassResolver |
weakCachingResolver(java.lang.ClassLoader classLoader)
适用于非共享默认缓存的非积极非并发缓存
|
public static ClassResolver cacheDisabled(java.lang.ClassLoader classLoader)
classLoader
- 要使用的特定classLoader;如果要恢复为默认值,则返回null
public static ClassResolver weakCachingResolver(java.lang.ClassLoader classLoader)
classLoader
- 要使用的特定classLoader,如果要恢复为默认值,则返回null
public static ClassResolver softCachingResolver(java.lang.ClassLoader classLoader)
classLoader
- 要使用的特定classLoader;如果要恢复为默认值,则返回null
public static ClassResolver weakCachingConcurrentResolver(java.lang.ClassLoader classLoader)
classLoader
- 要使用的特定classLoader,如果要恢复为默认值,则返回null
public static ClassResolver softCachingConcurrentResolver(java.lang.ClassLoader classLoader)
classLoader
- 要使用的特定classLoader,如果要恢复为默认值,则返回null
Copyright © 2008–2018 The Netty Project. All rights reserved.