Class MockZenPing

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, Releasable, ZenPing

    public final class MockZenPing
    extends AbstractComponent
    implements ZenPing
    A ZenPing implementation which returns results based on a static in-memory map. This allows pinging to be immediate and can be used to speed up tests.
    • Method Detail

      • start

        public void start()
        Specified by:
        start in interface ZenPing
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface Releasable