Class Retry

    • Method Detail

      • clone

        public Retry clone()
        Creates a copy of the Retry
        Overrides:
        clone in class Object
      • attempts

        public static Retry attempts​(int a)
        Utility method to constructs a new Attempts-variant Retry
      • timeout

        public static Retry timeout​(long a)
        Utility method to constructs a new Timeout-variant Retry
      • eq

        public boolean eq​(Retry b)
        Checks if two Retrys contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields.
      • hash

        public long hash()
        Generates a non-cryptographic 64-bit hash of the Retry.
      • hashCode

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

        public byte[] write()
        Serialize the Retry object into a byte array which can be read by Retry_read
      • read

        public static Result_RetryDecodeErrorZ read​(byte[] ser)
        Read a Retry from a byte array, created by Retry_write