Class InternalFetchConnection<C>

All Implemented Interfaces:
AutoCloseable, Connection, FetchConnection

class InternalFetchConnection<C> extends BasePackFetchConnection
  • Field Details

    • worker

      private Thread worker
  • Constructor Details

  • Method Details

    • close

      public void close()

      Close any resources used by this connection.

      If the remote repository is contacted by a network socket this method must close that network socket, disconnecting the two peers. If the remote repository is actually local (same system) this method must close any open file handles used to read the "remote" repository.

      If additional messages were produced by the remote peer, these should still be retained in the connection instance for Connection.getMessages().

      AutoClosable.close() declares that it throws Exception. Implementers shouldn't throw checked exceptions. This override narrows the signature to prevent them from doing so.

      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Connection
      Overrides:
      close in class BasePackFetchConnection