Class WebSocketTracker

java.lang.Object
io.fluxzero.common.tracking.WebSocketTracker
All Implemented Interfaces:
Tracker, Comparable<Tracker>

public class WebSocketTracker extends Object implements Tracker
  • Constructor Details

  • Method Details

    • canHandle

      public boolean canHandle(SerializedMessage message, int[] segmentRange)
      Description copied from interface: Tracker
      Checks if the given message can be handled by this tracker based on segment range and type filtering.
      Specified by:
      canHandle in interface Tracker
      Parameters:
      message - the message to check
      segmentRange - the range of segments this tracker is assigned to
      Returns:
      true if the message is valid for this tracker
    • isRetained

      public boolean isRetained()
      Whether this reservation is awaiting its first read after Runtime handover.
    • hasTypeFilter

      public boolean hasTypeFilter()
      Description copied from interface: Tracker
      Indicates whether Tracker.getTypeFilter() imposes an actual constraint.

      Existing custom trackers default to filtering so their predicate keeps being evaluated. Transport trackers can override this when no filter was configured, allowing native messages to retain their encoded type bytes.

      Specified by:
      hasTypeFilter in interface Tracker
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object