com.github.kpavlov.jreactive8583.ConnectorConfigurer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of netty-iso8583 Show documentation
Show all versions of netty-iso8583 Show documentation
ISO8583 protocol client and server Netty connectors.
The newest version!
@file:JvmName("ConnectorConfigurer")
package com.github.kpavlov.jreactive8583
import io.netty.bootstrap.AbstractBootstrap
import io.netty.channel.ChannelPipeline
@JvmDefaultWithCompatibility
public interface ConnectorConfigurer> {
/**
* Hook added before completion of the bootstrap configuration.
*
*
* This method is called during [AbstractIso8583Connector.init] phase.
*
*
*
* This implementation does nothing
*
* @param bootstrap AbstractBootstrap to configure
* @param configuration A [ConnectorConfiguration] to use
*/
public fun configureBootstrap(
bootstrap: B,
configuration: C,
) {
// this method was intentionally left blank
}
/**
* Hook added before completion of the pipeline configuration.
*
*
* This method is called during
* [com.github.kpavlov.jreactive8583.netty.pipeline.Iso8583ChannelInitializer.initChannel] phase.
*
*
* This implementation does nothing
*
* @param pipeline A [ChannelPipeline] being configured
* @param configuration A [ConnectorConfiguration] to use
*/
public fun configurePipeline(
pipeline: ChannelPipeline,
configuration: C,
) {
// this method was intentionally left blank
}
}