use of reactor.netty.Connection in project reactor-netty by reactor.
the class Application method main.
public static void main(String[] args) {
LoopResources loop = LoopResources.create("event-loop", 1, 4, true);
Connection connection = UdpClient.create().host("example.com").port(80).runOn(loop).connectNow(Duration.ofSeconds(30));
connection.onDispose().block();
}
use of reactor.netty.Connection in project reactor-netty by reactor.
the class Application method main.
public static void main(String[] args) {
Connection connection = UdpClient.create().host("example.com").port(80).metrics(// <1>
true).connectNow(Duration.ofSeconds(30));
connection.onDispose().block();
}
use of reactor.netty.Connection in project reactor-netty by reactor.
the class Application method main.
public static void main(String[] args) {
Connection connection = TcpClient.create().remoteAddress(// <1>
() -> new DomainSocketAddress("/tmp/test.sock")).connectNow();
connection.onDispose().block();
}
use of reactor.netty.Connection in project reactor-netty by reactor.
the class Application method main.
public static void main(String[] args) {
Connection connection = TcpClient.create().host(// <1>
"example.com").port(// <2>
80).connectNow();
connection.onDispose().block();
}
use of reactor.netty.Connection in project reactor-netty by reactor.
the class Application method main.
public static void main(String[] args) {
Connection connection = // <1>
TcpClient.create().connectNow();
connection.onDispose().block();
}
Aggregations