Class NetworkEvent

  • Direct Known Subclasses:
    AutoValue_NetworkEvent

    @Immutable
    @Deprecated
    public abstract class NetworkEvent
    extends BaseMessageEvent
    Deprecated.
    A class that represents a network event. It requires a type and a message id that serves to uniquely identify each network message. It can optionally can have information about the kernel time and message size.
    Since:
    0.5
    • Constructor Detail

      • NetworkEvent

        NetworkEvent()
        Deprecated.
    • Method Detail

      • builder

        public static NetworkEvent.Builder builder​(NetworkEvent.Type type,
                                                   long messageId)
        Deprecated.
        Returns a new NetworkEvent.Builder with default values.
        Parameters:
        type - designates whether this is a network send or receive message.
        messageId - serves to uniquely identify each network message.
        Returns:
        a new Builder with default values.
        Throws:
        java.lang.NullPointerException - if type is null.
        Since:
        0.5
      • getKernelTimestamp

        @Nullable
        public abstract Timestamp getKernelTimestamp()
        Deprecated.
        Returns the kernel timestamp associated with the NetworkEvent or null if not set.
        Returns:
        the kernel timestamp associated with the NetworkEvent or null if not set.
        Since:
        0.5
      • getType

        public abstract NetworkEvent.Type getType()
        Deprecated.
        Returns the type of the NetworkEvent.
        Returns:
        the type of the NetworkEvent.
        Since:
        0.5
      • getMessageId

        public abstract long getMessageId()
        Deprecated.
        Returns the message id argument that serves to uniquely identify each network message.
        Returns:
        the message id of the NetworkEvent.
        Since:
        0.5
      • getUncompressedMessageSize

        public abstract long getUncompressedMessageSize()
        Deprecated.
        Returns the uncompressed size in bytes of the NetworkEvent.
        Returns:
        the uncompressed size in bytes of the NetworkEvent.
        Since:
        0.6
      • getCompressedMessageSize

        public abstract long getCompressedMessageSize()
        Deprecated.
        Returns the compressed size in bytes of the NetworkEvent.
        Returns:
        the compressed size in bytes of the NetworkEvent.
        Since:
        0.6
      • getMessageSize

        @Deprecated
        public long getMessageSize()
        Returns the uncompressed size in bytes of the NetworkEvent.
        Returns:
        the uncompressed size in bytes of the NetworkEvent.
        Since:
        0.5