Interface Destructor<T>

  • Type Parameters:
    T - Type of the driver that the destructor is able to destroy
    All Superinterfaces:
    Sortable

    public interface Destructor<T>
    extends Sortable
    Defines a contract for destroying instances of the Drone Driver
    • Method Detail

      • destroyInstance

        void destroyInstance​(T instance)
        Destroys an instance of the driver.

        After the last method is run, the driver instance is destroyed. This means browser windows, if any, are closed and used resources are freed.

        Parameters:
        instance - The instance to be destroyed