Class PacketQueryProvider


  • public class PacketQueryProvider
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <R> @NotNull de.dytanic.cloudnet.common.concurrent.ITask<R> sendCallablePacket​(@NotNull INetworkChannel networkChannel, @NotNull java.lang.String channel, @NotNull java.lang.String id, @NotNull de.dytanic.cloudnet.common.document.gson.JsonDocument data, @NotNull java.util.function.Function<de.dytanic.cloudnet.common.document.gson.JsonDocument,​R> function)  
      <R> @NotNull de.dytanic.cloudnet.common.concurrent.ITask<R> sendCallablePacket​(@NotNull INetworkChannel networkChannel, java.lang.String channel, @NotNull de.dytanic.cloudnet.common.document.gson.JsonDocument header, byte[] body, @NotNull java.util.function.Function<de.dytanic.cloudnet.common.collection.Pair<de.dytanic.cloudnet.common.document.gson.JsonDocument,​byte[]>,​R> function)  
      <R> @NotNull de.dytanic.cloudnet.common.concurrent.ITask<R> sendCallablePacketWithAsDriverSyncAPI​(@NotNull INetworkChannel channel, @NotNull de.dytanic.cloudnet.common.document.gson.JsonDocument header, byte[] body, @NotNull java.util.function.Function<de.dytanic.cloudnet.common.collection.Pair<de.dytanic.cloudnet.common.document.gson.JsonDocument,​byte[]>,​R> function)  
      <R> @NotNull de.dytanic.cloudnet.common.concurrent.ITask<R> sendCallablePacketWithAsDriverSyncAPIWithNetworkConnector​(@NotNull de.dytanic.cloudnet.common.document.gson.JsonDocument header, byte[] body, @NotNull java.util.function.Function<de.dytanic.cloudnet.common.collection.Pair<de.dytanic.cloudnet.common.document.gson.JsonDocument,​byte[]>,​R> function)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PacketQueryProvider

        public PacketQueryProvider​(@NotNull
                                   @NotNull INetworkClient defaultNetworkClient)
    • Method Detail

      • sendCallablePacket

        @NotNull
        public <R> @NotNull de.dytanic.cloudnet.common.concurrent.ITask<R> sendCallablePacket​(@NotNull
                                                                                              @NotNull INetworkChannel networkChannel,
                                                                                              @NotNull
                                                                                              @NotNull java.lang.String channel,
                                                                                              @NotNull
                                                                                              @NotNull java.lang.String id,
                                                                                              @NotNull
                                                                                              @NotNull de.dytanic.cloudnet.common.document.gson.JsonDocument data,
                                                                                              @NotNull
                                                                                              @NotNull java.util.function.Function<de.dytanic.cloudnet.common.document.gson.JsonDocument,​R> function)
      • sendCallablePacketWithAsDriverSyncAPIWithNetworkConnector

        @NotNull
        public <R> @NotNull de.dytanic.cloudnet.common.concurrent.ITask<R> sendCallablePacketWithAsDriverSyncAPIWithNetworkConnector​(@NotNull
                                                                                                                                     @NotNull de.dytanic.cloudnet.common.document.gson.JsonDocument header,
                                                                                                                                     byte[] body,
                                                                                                                                     @NotNull
                                                                                                                                     @NotNull java.util.function.Function<de.dytanic.cloudnet.common.collection.Pair<de.dytanic.cloudnet.common.document.gson.JsonDocument,​byte[]>,​R> function)
      • sendCallablePacketWithAsDriverSyncAPI

        @NotNull
        public <R> @NotNull de.dytanic.cloudnet.common.concurrent.ITask<R> sendCallablePacketWithAsDriverSyncAPI​(@NotNull
                                                                                                                 @NotNull INetworkChannel channel,
                                                                                                                 @NotNull
                                                                                                                 @NotNull de.dytanic.cloudnet.common.document.gson.JsonDocument header,
                                                                                                                 byte[] body,
                                                                                                                 @NotNull
                                                                                                                 @NotNull java.util.function.Function<de.dytanic.cloudnet.common.collection.Pair<de.dytanic.cloudnet.common.document.gson.JsonDocument,​byte[]>,​R> function)
      • sendCallablePacket

        @NotNull
        public <R> @NotNull de.dytanic.cloudnet.common.concurrent.ITask<R> sendCallablePacket​(@NotNull
                                                                                              @NotNull INetworkChannel networkChannel,
                                                                                              java.lang.String channel,
                                                                                              @NotNull
                                                                                              @NotNull de.dytanic.cloudnet.common.document.gson.JsonDocument header,
                                                                                              byte[] body,
                                                                                              @NotNull
                                                                                              @NotNull java.util.function.Function<de.dytanic.cloudnet.common.collection.Pair<de.dytanic.cloudnet.common.document.gson.JsonDocument,​byte[]>,​R> function)