
package uk.co.wingpath.io;

import java.io.*;

/**
* Interface for providing a service on a connection.
*/

public interface Service
{
    /**
    * Terminates the service and closes the connection.
    */
    void terminate ();

    /**
    * Tests whether the service is still running.
    * @return true if the service is running.
    */
    boolean isAlive ();
}

