Class ReCounters

  • All Implemented Interfaces:
    Counters

    @Immutable
    @Loggable(1)
    public final class ReCounters
    extends Object
    implements Counters
    Retriable counters.
    Since:
    0.5
    • Constructor Detail

      • ReCounters

        public ReCounters​(Counters orgn)
        Ctor.
        Parameters:
        orgn - Original object
    • Method Detail

      • create

        @RetryOnFailure(verbose=false,
                        attempts=20,
                        delay=20L,
                        unit=SECONDS)
        public Counter create​(String name)
                       throws IOException
        Description copied from interface: Counters
        Create a counter.
        Specified by:
        create in interface Counters
        Parameters:
        name - Name of it
        Returns:
        Counter
        Throws:
        IOException - If some I/O problem
      • delete

        @RetryOnFailure(verbose=false,
                        attempts=20,
                        delay=20L,
                        unit=SECONDS)
        public void delete​(String name)
                    throws IOException
        Description copied from interface: Counters
        Delete a counter.
        Specified by:
        delete in interface Counters
        Parameters:
        name - Name of it
        Throws:
        IOException - If some I/O problem
      • get

        @RetryOnFailure(verbose=false,
                        attempts=20,
                        delay=20L,
                        unit=SECONDS)
        public Counter get​(String name)
                    throws IOException
        Description copied from interface: Counters
        Get one counter by name.
        Specified by:
        get in interface Counters
        Parameters:
        name - Name of it
        Returns:
        Counter
        Throws:
        IOException - If some I/O problem