Class IncomingStream

java.lang.Object
services.moleculer.stream.IncomingStream

public class IncomingStream extends Object
  • Field Details

    • nodeID

      protected final String nodeID
      Currrent nodeID.
    • stream

      protected final PacketStream stream
      Internal stream with listeners.
    • timeoutMillis

      protected final long timeoutMillis
      Stream inactivity/read timeout in MILLISECONDS (0 = no timeout).
    • timeoutAt

      protected volatile long timeoutAt
      Timestamp of the next timeout (0 = no timeout).
    • prevSeq

      protected volatile long prevSeq
    • pool

      protected final HashMap<Long, io.datatree.Tree> pool
    • inited

      protected AtomicBoolean inited
  • Constructor Details

  • Method Details

    • reset

      public void reset()
      Used for testing. Resets internal variables.
    • error

      public void error(Throwable cause)
    • inited

      public boolean inited()
    • receive

      public boolean receive(io.datatree.Tree message)
    • processMessage

      protected boolean processMessage(io.datatree.Tree message)
    • getTimeoutAt

      public long getTimeoutAt()
    • getPacketStream

      public PacketStream getPacketStream()