com.rabbitmq.client.impl.nio.NioContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of amqp-client Show documentation
Show all versions of amqp-client Show documentation
The RabbitMQ Java client library allows Java applications to interface with RabbitMQ.
The newest version!
package com.rabbitmq.client.impl.nio;
import javax.net.ssl.SSLEngine;
/**
* Context when creating resources for a NIO-based connection.
*
* @see ByteBufferFactory
* @since 5.5.0
*/
public class NioContext {
private final NioParams nioParams;
private final SSLEngine sslEngine;
NioContext(NioParams nioParams, SSLEngine sslEngine) {
this.nioParams = nioParams;
this.sslEngine = sslEngine;
}
/**
* NIO params.
*
* @return
*/
public NioParams getNioParams() {
return nioParams;
}
/**
* {@link SSLEngine} for SSL/TLS connection.
* Null for plain connection.
*
* @return
*/
public SSLEngine getSslEngine() {
return sslEngine;
}
}