Top Constructors Methods
io.vertx.core.impl.transports

public Class KQueueTransport

extends Object
implements Transport
Class Inheritance
All Implemented Interfaces
io.vertx.core.spi.transport.Transport
Imports
io.netty.bootstrap.ServerBootstrap, io.netty.channel.Channel, .ChannelFactory, .EventLoopGroup, .ServerChannel, io.netty.channel.kqueue.*, io.netty.channel.socket.DatagramChannel, .InternetProtocolFamily, io.netty.channel.unix.DomainSocketAddress, io.vertx.core.datagram.DatagramSocketOptions, io.vertx.core.net.NetServerOptions, io.vertx.core.net.impl.SocketAddressImpl, io.vertx.core.spi.transport.Transport, java.net.SocketAddress, java.util.concurrent.ThreadFactory

Author
Julien Viet

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ChannelFactory<? extends Channel>
channelFactory(boolean
whether to create a unix domain channel or a socket channel
domainSocket
)

Implements io.vertx.core.spi.transport.Transport.channelFactory.

References Deprecated ChannelFactory is deprecated or references (maybe indirectly) at least one deprecated element.

public void
configure(NetServerOptions options, boolean domainSocket, ServerBootstrap bootstrap)

Overrides default io.vertx.core.spi.transport.Transport.configure.

public void
public SocketAddress
public SocketAddress
public DatagramChannel
public DatagramChannel
public EventLoopGroup
eventLoopGroup(int type, int
the number of threads that will be used by this instance.
nThreads
,
ThreadFactory
the ThreadFactory to use.
threadFactory
,
int
the IO ratio
ioRatio
)

Implements io.vertx.core.spi.transport.Transport.eventLoopGroup.

public boolean
public ChannelFactory<? extends ServerChannel>
serverChannelFactory(boolean
whether to create a server unix domain channel or a regular server socket channel
domainSocket
)

Implements io.vertx.core.spi.transport.Transport.serverChannelFactory.

References Deprecated ChannelFactory is deprecated or references (maybe indirectly) at least one deprecated element.

public boolean
public Throwable
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

KQueueTransportback to summary
public KQueueTransport()

Method Detail

channelFactoryback to summary
public ChannelFactory<? extends Channel> channelFactory(boolean domainSocket)

Implements io.vertx.core.spi.transport.Transport.channelFactory.

References Deprecated

ChannelFactory is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Parameters
domainSocket:boolean

Doc from io.vertx.core.spi.transport.Transport.channelFactory.

whether to create a unix domain channel or a socket channel

Returns:ChannelFactory<? extends Channel>

Doc from io.vertx.core.spi.transport.Transport.channelFactory.

the type for channel

Annotations
@Override
configureback to summary
public void configure(NetServerOptions options, boolean domainSocket, ServerBootstrap bootstrap)

Overrides default io.vertx.core.spi.transport.Transport.configure.

Annotations
@Override
configureback to summary
public void configure(DatagramChannel channel, DatagramSocketOptions options)

Overrides default io.vertx.core.spi.transport.Transport.configure.

Annotations
@Override
convertback to summary
public SocketAddress convert(SocketAddress address)

Overrides default io.vertx.core.spi.transport.Transport.convert.

Annotations
@Override
convertback to summary
public SocketAddress convert(SocketAddress address)

Overrides default io.vertx.core.spi.transport.Transport.convert.

Annotations
@Override
datagramChannelback to summary
public DatagramChannel datagramChannel()

Implements io.vertx.core.spi.transport.Transport.datagramChannel.

Returns:DatagramChannel

Doc from io.vertx.core.spi.transport.Transport.datagramChannel.

a new datagram channel

Annotations
@Override
datagramChannelback to summary
public DatagramChannel datagramChannel(InternetProtocolFamily family)

Implements io.vertx.core.spi.transport.Transport.datagramChannel.

Returns:DatagramChannel

Doc from io.vertx.core.spi.transport.Transport.datagramChannel.

a new datagram channel

Annotations
@Override
eventLoopGroupback to summary
public EventLoopGroup eventLoopGroup(int type, int nThreads, ThreadFactory threadFactory, int ioRatio)

Implements io.vertx.core.spi.transport.Transport.eventLoopGroup.

Parameters
type:int

Doc from io.vertx.core.spi.transport.Transport.eventLoopGroup.

one of ACCEPTOR_EVENT_LOOP_GROUP or IO_EVENT_LOOP_GROUP.

nThreads:int

Doc from io.vertx.core.spi.transport.Transport.eventLoopGroup.

the number of threads that will be used by this instance.

threadFactory:ThreadFactory

Doc from io.vertx.core.spi.transport.Transport.eventLoopGroup.

the ThreadFactory to use.

ioRatio:int

Doc from io.vertx.core.spi.transport.Transport.eventLoopGroup.

the IO ratio

Returns:EventLoopGroup

Doc from io.vertx.core.spi.transport.Transport.eventLoopGroup.

a new event loop group

Annotations
@Override
isAvailableback to summary
public boolean isAvailable()

Overrides default io.vertx.core.spi.transport.Transport.isAvailable.

Returns:boolean

Doc from io.vertx.core.spi.transport.Transport.isAvailable.

true when the transport is available.

Annotations
@Override
serverChannelFactoryback to summary
public ChannelFactory<? extends ServerChannel> serverChannelFactory(boolean domainSocket)

Implements io.vertx.core.spi.transport.Transport.serverChannelFactory.

References Deprecated

ChannelFactory is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Parameters
domainSocket:boolean

Doc from io.vertx.core.spi.transport.Transport.serverChannelFactory.

whether to create a server unix domain channel or a regular server socket channel

Returns:ChannelFactory<? extends ServerChannel>

Doc from io.vertx.core.spi.transport.Transport.serverChannelFactory.

the type for server channel

Annotations
@Override
supportsDomainSocketsback to summary
public boolean supportsDomainSockets()

Overrides default io.vertx.core.spi.transport.Transport.supportsDomainSockets.

Annotations
@Override
unavailabilityCauseback to summary
public Throwable unavailabilityCause()

Overrides default io.vertx.core.spi.transport.Transport.unavailabilityCause.

Returns:Throwable

Doc from io.vertx.core.spi.transport.Transport.unavailabilityCause.

the error that cause the unavailability when isAvailable() returns null.

Annotations
@Override