netty-xnio-transport

Provides, via submodules, a base configuration for JBoss project builds, as well as a derived configuration supporting multi-release JARs

License

License

Categories

Categories

JBoss Container Application Servers Net Netty Networking
GroupId

GroupId

org.jboss.xnio.netty
ArtifactId

ArtifactId

netty-xnio-transport
Last Version

Last Version

0.1.9.Final
Release Date

Release Date

Type

Type

jar
Description

Description

netty-xnio-transport
Provides, via submodules, a base configuration for JBoss project builds, as well as a derived configuration supporting multi-release JARs
Project URL

Project URL

http://www.jboss.org/netty-xnio-transport
Project Organization

Project Organization

JBoss, a division of Red Hat
Source Code Management

Source Code Management

https://github.com/xnio/netty-xnio-transport

Download netty-xnio-transport

How to add to project

<!-- https://jarcasting.com/artifacts/org.jboss.xnio.netty/netty-xnio-transport/ -->
<dependency>
    <groupId>org.jboss.xnio.netty</groupId>
    <artifactId>netty-xnio-transport</artifactId>
    <version>0.1.9.Final</version>
</dependency>
// https://jarcasting.com/artifacts/org.jboss.xnio.netty/netty-xnio-transport/
implementation 'org.jboss.xnio.netty:netty-xnio-transport:0.1.9.Final'
// https://jarcasting.com/artifacts/org.jboss.xnio.netty/netty-xnio-transport/
implementation ("org.jboss.xnio.netty:netty-xnio-transport:0.1.9.Final")
'org.jboss.xnio.netty:netty-xnio-transport:jar:0.1.9.Final'
<dependency org="org.jboss.xnio.netty" name="netty-xnio-transport" rev="0.1.9.Final">
  <artifact name="netty-xnio-transport" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.jboss.xnio.netty', module='netty-xnio-transport', version='0.1.9.Final')
)
libraryDependencies += "org.jboss.xnio.netty" % "netty-xnio-transport" % "0.1.9.Final"
[org.jboss.xnio.netty/netty-xnio-transport "0.1.9.Final"]

Dependencies

compile (3)

Group / Artifact Type Version
io.netty : netty-transport jar 4.1.34.Final
io.netty : netty-buffer jar 4.1.34.Final
org.jboss.xnio : xnio-api jar 3.7.1.Final

test (4)

Group / Artifact Type Version
io.netty : netty-testsuite jar 4.1.34.Final
junit : junit jar 4.12
org.jboss.xnio : xnio-nio jar 3.7.1.Final
org.jboss.logging : jboss-logging jar 3.4.0.Final

Project Modules

There are no modules declared in this project.

netty-xnio-transport

This is a Netty Transport powered by XNIO. It can be used to either wrap an existing StreamConnection and AcceptingChannel or to bootstrap a Netty powered server directly.

To bootstrap a server use it the same way as other transport implementations. The following code snipped shows an example:

    public void run() throws Exception {
        // Configure the server.
        EventLoopGroup group = new XnioEventLoopGroup(4);
        try {
            ServerBootstrap b = new ServerBootstrap();
            b.group(group)
             .childHandler(new HelloServerInitializer())

             .channel(XnioServerSocketChannel.class)
             .option(XnioChannelOption.BALANCING_TOKENS, 1)
             .option(XnioChannelOption.BALANCING_CONNECTIONS, 2)
             .childOption(ChannelOption.ALLOCATOR, PooledByteBufAllocator.DEFAULT);
            Channel ch = b.bind(port).sync().channel();
            ch.closeFuture().sync();
        } finally {
            group.shutdownGracefully().sync();
        }
    }

Versions

Version
0.1.9.Final
0.1.8.Final
0.1.7.Final
0.1.6.Final
0.1.5.Final
0.1.4.Final
0.1.3.Final
0.1.2.Final
0.1.1.Final
0.1.1.CR2
0.1.1.CR1
0.1.0