Package io.vertx.core.transport
Interface Transport
-
public interface TransportThe transport used by aVertxinstance.- Author:
- Julien Viet
-
-
Field Summary
Fields Modifier and Type Field Description static TransportEPOLLNative transport based on Netty native epoll transport.static TransportIO_URINGNative transport based on Netty native io_uring transport.static TransportKQUEUENative transport based on Netty native kqueue transport.static TransportNIONio transport, always available based on ${code java.nio} API.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanavailable()Transportimplementation()Stringname()static TransportnativeTransport()ThrowableunavailabilityCause()
-
-
-
Field Detail
-
NIO
static final Transport NIO
Nio transport, always available based on ${code java.nio} API.
-
KQUEUE
static final Transport KQUEUE
Native transport based on Netty native kqueue transport.
-
EPOLL
static final Transport EPOLL
Native transport based on Netty native epoll transport.
-
IO_URING
static final Transport IO_URING
Native transport based on Netty native io_uring transport.
-
-
Method Detail
-
name
String name()
- Returns:
- the name among
nio, kqueue, epoll, io_uring
-
nativeTransport
static Transport nativeTransport()
- Returns:
- a native transport, it might return an unavailable transport (
available()) thenunavailabilityCause()can be used to check the error preventing its unsafe,nullcan be returned when no native transport can be loaded.
-
available
boolean available()
- Returns:
- whether the transport can be used by a Vert.x instance
-
unavailabilityCause
Throwable unavailabilityCause()
- Returns:
- the unavailability cause when {#link
available()} returns true, otherwisenull
-
implementation
Transport implementation()
- Returns:
- the implementation
-
-