Enum DeliverOrder

    • Enum Constant Detail

      • NONE

        public static final DeliverOrder NONE
        The message is delivered as soon as it is received. No order is ensured between messages.
      • PER_SENDER

        public static final DeliverOrder PER_SENDER
        The message is delivered by the order they are sent. If a node sends M1 and M2 to other node, it delivers first M1 and then M2.
      • TOTAL

        public static final DeliverOrder TOTAL
        The message is delivered in the same order in all the destinations. If N1 sends M1 and N2 sends M2 to nodes N3 and N4, if N3 delivers first M1 and then M2, then N4 also delivers first M1 and then M2.
    • Method Detail

      • values

        public static DeliverOrder[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (DeliverOrder c : DeliverOrder.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DeliverOrder valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • preserveOrder

        public abstract boolean preserveOrder()