Class InternalSyncPacketChannel


  • @UnsafeClass
    public final class InternalSyncPacketChannel
    extends java.lang.Object
    This is the internal api channel for synchronized communication between driver api and cloudnet node. This Class is unsafe about the architecture, because the complete network framework based of async listening.

    It's only for the base API by the CloudNetDriver class and the Bridge API

    See Also:
    CloudNetDriver
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean handleIncomingChannel​(Packet packet)  
      static @NotNull de.dytanic.cloudnet.common.concurrent.ITask<de.dytanic.cloudnet.common.collection.Pair<de.dytanic.cloudnet.common.document.gson.JsonDocument,​byte[]>> sendCallablePacket​(@NotNull INetworkChannel channel, @NotNull de.dytanic.cloudnet.common.document.gson.JsonDocument header, byte[] body)  
      static @NotNull de.dytanic.cloudnet.common.concurrent.ITask<de.dytanic.cloudnet.common.collection.Pair<de.dytanic.cloudnet.common.document.gson.JsonDocument,​byte[]>> sendCallablePacket​(@NotNull INetworkChannel channel, @NotNull de.dytanic.cloudnet.common.document.gson.JsonDocument header, byte[] body, de.dytanic.cloudnet.common.concurrent.ITaskListener<de.dytanic.cloudnet.common.collection.Pair<de.dytanic.cloudnet.common.document.gson.JsonDocument,​byte[]>> listener)  
      • Methods inherited from class java.lang.Object

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

      • handleIncomingChannel

        public static boolean handleIncomingChannel​(Packet packet)
      • sendCallablePacket

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

        @NotNull
        public static @NotNull de.dytanic.cloudnet.common.concurrent.ITask<de.dytanic.cloudnet.common.collection.Pair<de.dytanic.cloudnet.common.document.gson.JsonDocument,​byte[]>> sendCallablePacket​(@NotNull
                                                                                                                                                                                                              @NotNull INetworkChannel channel,
                                                                                                                                                                                                              @NotNull
                                                                                                                                                                                                              @NotNull de.dytanic.cloudnet.common.document.gson.JsonDocument header,
                                                                                                                                                                                                              byte[] body,
                                                                                                                                                                                                              de.dytanic.cloudnet.common.concurrent.ITaskListener<de.dytanic.cloudnet.common.collection.Pair<de.dytanic.cloudnet.common.document.gson.JsonDocument,​byte[]>> listener)