Skip to content

Commit

Permalink
Update Gradle workflow to include JDK 23
Browse files Browse the repository at this point in the history
Replaced JDK version 22 with 23 in the GitHub Actions workflow file. This ensures the build process is tested with the latest Java Development Kit version.
Added missing documentation
  • Loading branch information
kpavlov authored and kpavlov committed Oct 28, 2024
1 parent 6746c3e commit b9c980c
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

strategy:
matrix:
java: [ '17', '21', '22' ]
java: [ '17', '21', '23' ]

name: Build under JDK ${{ matrix.Java }}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ private const val DEFAULT_FRAME_LENGTH_FIELD_ADJUST = 0
*/
private const val DEFAULT_FRAME_LENGTH_FIELD_OFFSET = 0

/**
* Abstract class representing the configuration for a connector.
*
* @param b The builder used to create the configuration instance.
*/
public abstract class ConnectorConfiguration protected constructor(
b: Builder<*>,
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ import io.netty.buffer.ByteBuf
import io.netty.channel.ChannelHandlerContext
import io.netty.handler.codec.ByteToMessageDecoder

/**
* A decoder for ISO8583 messages.
*
* This class extends `ByteToMessageDecoder` and is responsible for decoding ISO8583 messages
* from a Netty `ByteBuf` and outputting `IsoMessage` instances.
*
* @param messageFactory A factory for creating and parsing `IsoMessage` instances.
*/
public class Iso8583Decoder(
private val messageFactory: MessageFactory<IsoMessage>,
) : ByteToMessageDecoder() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,18 @@ import io.netty.handler.codec.LengthFieldBasedFrameDecoder
import io.netty.handler.logging.LogLevel
import io.netty.handler.timeout.IdleStateHandler

/**
* Initializes ISO 8583 channels with the necessary handlers.
*
* @param T the type of channel being initialized
* @param B the type of bootstrap to be configured
* @param C the type of connector configuration providing necessary settings
* @param configuration the connector configuration that provides necessary settings for initializing the channel
* @param configurer the configurer to further customize the bootstrap and pipeline configuration
* @param workerGroup the event loop group used for managing channel handlers
* @param isoMessageFactory the factory to create and parse ISO 8583 messages
* @param customChannelHandlers optional custom handlers to be added to the pipeline
*/
public open class Iso8583ChannelInitializer<
T : Channel,
B : AbstractBootstrap<*, *>,
Expand Down

0 comments on commit b9c980c

Please sign in to comment.