public class TcpClients
extends java.lang.Object
TcpClient instances more succinct.| Constructor and Description |
|---|
TcpClients() |
| Modifier and Type | Method and Description |
|---|---|
static <IN,OUT> TcpClientSpec<IN,OUT> |
create(reactor.core.Environment env,
java.lang.Class<? extends TcpClient> clientImpl)
|
static <IN,OUT> TcpClientSpec<IN,OUT> |
create(reactor.core.Environment env,
java.lang.String dispatcher,
java.lang.Class<? extends TcpClient> clientImpl)
Create a
TcpClientSpec for further configuration using the given Environment, Dispatcher type, and clientImpl. |
public static <IN,OUT> TcpClientSpec<IN,OUT> create(reactor.core.Environment env, @Nonnull java.lang.Class<? extends TcpClient> clientImpl)
IN - type of the inputOUT - type of the outputenv - the Environment to useclientImpl - the TcpClient implementation to useTcpClientSpecpublic static <IN,OUT> TcpClientSpec<IN,OUT> create(reactor.core.Environment env, java.lang.String dispatcher, @Nonnull java.lang.Class<? extends TcpClient> clientImpl)
TcpClientSpec for further configuration using the given Environment, Dispatcher type, and clientImpl.IN - type of the inputOUT - type of the outputenv - the Environment to usedispatcher - the type of Dispatcher to useclientImpl - the TcpClient implementation to useTcpClientSpec