Class CachingOpenSSLContextFactory

java.lang.Object
org.apache.activemq.artemis.core.remoting.impl.ssl.DefaultOpenSSLContextFactory
org.apache.activemq.artemis.core.remoting.impl.ssl.CachingOpenSSLContextFactory
All Implemented Interfaces:
Comparable<OpenSSLContextFactory>, OpenSSLContextFactory

public class CachingOpenSSLContextFactory extends DefaultOpenSSLContextFactory
OpenSSLContextFactory providing a cache of SslContext. Since SslContext should be reused instead of recreated and are thread safe. To activate it you need to allow this Service to be discovered by having a META-INF/services/org.apache.activemq.artemis.spi.core.remoting.ssl.OpenSSLContextFactory file with org.apache.activemq.artemis.core.remoting.impl.ssl.CachingOpenSSLContextFactory as value.