Annotation Type Units


  • @Retention(RUNTIME)
    @Target(METHOD)
    public @interface Units
    Units annotation to be used on @Configured interfaces. Units are strings because they are an unbounded set, but do try to use the provided values for consistency.
    Author:
    Lloyd Chambers
    • Field Detail

      • MILLISECONDS

        static final String MILLISECONDS
      • SECONDS

        static final String SECONDS
      • MINUTES

        static final String MINUTES
      • HOURS

        static final String HOURS
      • BYTES

        static final String BYTES
      • KILOBYTES

        static final String KILOBYTES
      • MEGABYTES

        static final String MEGABYTES
      • GIGABYTES

        static final String GIGABYTES
      • COUNT

        static final String COUNT
        value is an arbitrary count
    • Element Detail

      • units

        @DescriptorKey("units")
        String units
        Units should always be lower-case and appropriate for human viewing. Suggested units:
        • "seconds", "milliseconds", "minutes", "hours", "days"
        • "count"
        • "bytes", "kilobytes", "megabytes", "gigabytes"