Class TunnelAssembler<K>

java.lang.Object
fr.ghostrider584.axiom.network.channel.TunnelAssembler<K>

public final class TunnelAssembler<K> extends Object
Axiom API 10 fragments. Four assemblies, bounded bytes/fragments and a ten-second lifetime.
  • Constructor Details

    • TunnelAssembler

      public TunnelAssembler()
    • TunnelAssembler

      public TunnelAssembler(LongSupplier clock)
  • Method Details

    • clear

      public void clear(K key)
    • clear

      public void clear()
    • accept

      public byte[] accept(K key, byte[] fragment)
      null until the final fragment. Returned bytes are owned by the caller.
    • decode

      public static TunnelAssembler.Packet decode(byte[] bytes)
      Run off the tick path. No dictionary is used for tunnel-level compression.