Class TransportLocal.ForkLocalPushConnection

All Implemented Interfaces:
AutoCloseable, Connection, PushConnection
Enclosing class:
TransportLocal

class TransportLocal.ForkLocalPushConnection extends BasePackPushConnection
  • Field Details

    • receivePack

      private Process receivePack
    • errorReaderThread

      private Thread errorReaderThread
  • Constructor Details

  • Method Details

    • close

      public void close()
      Description copied from class: BasePackConnection

      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 BasePackConnection