## 类的使用
org.redkale.net.Transport

- 使用Transport的程序包
  程序包 | 说明
  --- | ---
  org.redkale.boot | 提供Redkale服务器的启动、初始化和加载功能
  org.redkale.net | 网络TCP/UDP基础服务包
  org.redkale.net.sncp | SNCP协议包,提供SNCP协议服务器

- - ### org.redkale.boot中Transport的使用

    返回Transport的org.redkale.boot中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `protected Transport` | NodeServer.`loadTransport(java.util.HashSet<java.lang.String> groups)`
    `protected Transport` | NodeServer.`loadTransport(java.lang.String group)`

    返回变量类型为Transport的类型的org.redkale.boot中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `protected java.util.List<Transport>` | NodeServer.`loadTransports(java.util.HashSet<java.lang.String> groups)`

  - ### org.redkale.net中Transport的使用

    类型变量类型为Transport的org.redkale.net中的构造器参数
    构造器和说明
    `Transport(java.util.Collection<Transport> transports)`

  - ### org.redkale.net.sncp中Transport的使用

    返回Transport的org.redkale.net.sncp中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `static Transport[]` | Sncp.`getDiffGroupTransports(Service service)`
    `static Transport` | Sncp.`getSameGroupTransport(Service service)`

    参数类型为Transport的org.redkale.net.sncp中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | SncpClient.`asyncRemoteDiffGroup(BsonConvert bsonConvert, JsonConvert jsonConvert, Transport[] transports, int index, java.lang.Object... params)`
    `void` | SncpClient.`asyncRemoteSameGroup(BsonConvert bsonConvert, JsonConvert jsonConvert, Transport transport, int index, java.lang.Object... params)`
    `static <T extends Service> T` | Sncp.`createLocalService(java.lang.String name, java.util.function.Consumer<java.lang.Runnable> executor, ResourceFactory resourceFactory, java.lang.Class<T> serviceClass, java.net.InetSocketAddress clientAddress, Transport sameGroupTransport, java.util.Collection<Transport> diffGroupTransports)` 创建本地模式Service实例
    `static <T extends Service> T` | Sncp.`createRemoteService(java.lang.String name, java.util.function.Consumer<java.lang.Runnable> executor, java.lang.Class<T> serviceClass, java.net.InetSocketAddress clientAddress, Transport transport)` @Resource(name = "") @SncpDyn(remote = true) @ResourceType({TestService.class}) public final class _DynRemoteTestService extends TestService{ @Resource private BsonConvert _redkale_bsonConvert; @Resource private JsonConvert _redkale_jsonConvert; private Transport _redkale_transport; private SncpClient _redkale_client; private String _redkale_selfstring; @Override public String toString() { return _redkale_selfstring == null ?
    `<T> void` | SncpClient.`remote(BsonConvert bsonConvert, JsonConvert jsonConvert, Transport[] transports, int index, java.lang.Object... params)`
    `<T> T` | SncpClient.`remote(BsonConvert bsonConvert, JsonConvert jsonConvert, Transport transport, int index, java.lang.Object... params)`
    `void` | SncpClient.`remoteDiffGroup(BsonConvert bsonConvert, JsonConvert jsonConvert, Transport[] transports, int index, java.lang.Object... params)`
    `void` | SncpClient.`remoteSameGroup(BsonConvert bsonConvert, JsonConvert jsonConvert, Transport transport, int index, java.lang.Object... params)`

    类型变量类型为Transport的org.redkale.net.sncp中的方法参数
    限定符和类型 | 方法和说明
    --- | ---
    `static <T extends Service> T` | Sncp.`createLocalService(java.lang.String name, java.util.function.Consumer<java.lang.Runnable> executor, ResourceFactory resourceFactory, java.lang.Class<T> serviceClass, java.net.InetSocketAddress clientAddress, Transport sameGroupTransport, java.util.Collection<Transport> diffGroupTransports)` 创建本地模式Service实例