Interface Connection

  • All Superinterfaces:
    java.lang.AutoCloseable
    All Known Implementing Classes:
    AbstractConnection, ConnectionImpl, FakeDriverImpl.FakeConnectionImpl

    public interface Connection
    extends java.lang.AutoCloseable
    Represents a connection to the distant storage offer service that is provided by the driver when calling the connect method:

    myDriver.connect(serviceUrl, parameters);

    The connection implementation is driver dependent but MUST hold enough informations/parameters/configurations to be able to contact the distant offer service without the need to give additional connection related parameters on further request done with this connection. In some cases it may be considered as a "session". Note: Connection extends AutoCloseable so the connection implementation MUST provide a close() method which responsibility is to cleanly close and remove.