All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.rabbitmq.client.impl.nio.NioContext Maven / Gradle / Ivy

Go to download

The RabbitMQ Java client library allows Java applications to interface with RabbitMQ.

There is a newer version: 5.22.0
Show 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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy