Package one.nio.net
Class SslSessionCache.Singleton
- java.lang.Object
-
- one.nio.net.SslSessionCache.Singleton
-
- Enclosing interface:
- SslSessionCache
public static class SslSessionCache.Singleton extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSslSessionCache.Singleton.Factory
-
Field Summary
Fields Modifier and Type Field Description private static intCAPACITYprivate static SslSessionCache.Singleton.FactoryFACTORYprivate static SslSessionCacheINSTANCE
-
Constructor Summary
Constructors Constructor Description Singleton()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static voidclearInstance()static SslSessionCachegetInstance()static voidsetCapacity(int capacity)static voidsetFactory(SslSessionCache.Singleton.Factory factory)
-
-
-
Field Detail
-
INSTANCE
private static volatile SslSessionCache INSTANCE
-
FACTORY
private static SslSessionCache.Singleton.Factory FACTORY
-
CAPACITY
private static int CAPACITY
-
-
Method Detail
-
setFactory
public static void setFactory(SslSessionCache.Singleton.Factory factory)
-
setCapacity
public static void setCapacity(int capacity)
-
getInstance
public static SslSessionCache getInstance()
-
clearInstance
private static void clearInstance()
-
-