Example usage for io.vertx.core VertxOptions getPreferNativeTransport

List of usage examples for io.vertx.core VertxOptions getPreferNativeTransport

Introduction

In this page you can find the example usage for io.vertx.core VertxOptions getPreferNativeTransport.

Prototype

public boolean getPreferNativeTransport() 

Source Link

Usage

From source file:io.gravitee.am.gateway.handler.vertx.RxVertxTestBase.java

License:Apache License

public void setUp() throws Exception {
    super.setUp();
    vinit();/*from  ww  w .j  a  v a 2 s. com*/
    VertxOptions options = getOptions();
    boolean nativeTransport = options.getPreferNativeTransport();
    vertx = Vertx.vertx(options);
    if (nativeTransport) {
        assertTrue(vertx.isNativeTransportEnabled());
    }
}