Top Fields Constructors Methods
org.eclipse.jgit.transport

pack-priv Class InternalFetchConnection<C>

extends BasePackFetchConnection
Class Inheritance
Imports
java.io.IOException, .PipedInputStream, .PipedOutputStream, org.eclipse.jgit.errors.TransportException, org.eclipse.jgit.internal.JGitText, org.eclipse.jgit.lib.Repository, org.eclipse.jgit.transport.resolver.ServiceNotAuthorizedException, .ServiceNotEnabledException, .UploadPackFactory

Field Summary

Modifier and TypeField and Description
private Thread
Inherited from org.eclipse.jgit.transport.BasePackFetchConnection:
ADVERTISEDCOMMONMIN_CLIENT_BUFFEROPTION_ALLOW_REACHABLE_SHA1_IN_WANTOPTION_ALLOW_TIP_SHA1_IN_WANTOPTION_FILTEROPTION_INCLUDE_TAGOPTION_MULTI_ACKOPTION_MULTI_ACK_DETAILEDOPTION_NO_DONEOPTION_NO_PROGRESSOPTION_OFS_DELTAOPTION_SHALLOWOPTION_SIDE_BANDOPTION_SIDE_BAND_64KOPTION_THIN_PACKREACHABLE

Constructor Summary

AccessConstructor and Description
public
InternalFetchConnection(PackTransport transport, final UploadPackFactory<C> uploadPackFactory, final C
request
req
,
final Repository remote)

Constructor for InternalFetchConnection.

Method Summary

Modifier and TypeMethod and Description
public void
close()

Overrides org.eclipse.jgit.transport.BasePackFetchConnection.close.

Implements org.eclipse.jgit.transport.Connection.close.

Closes this resource, relinquishing any underlying resources.

Inherited from org.eclipse.jgit.transport.BasePackFetchConnection:
didFetchIncludeTagsdidFetchTestConnectivitydoFetchfetchfetchgetFetchConfiggetPackLocksonReceivePacksetPackLockMessage

Field Detail

workerback to summary
private Thread worker

Constructor Detail

InternalFetchConnectionback to summary
public InternalFetchConnection(PackTransport transport, final UploadPackFactory<C> uploadPackFactory, final C req, final Repository remote) throws TransportException

Constructor for InternalFetchConnection.

Parameters
transport:PackTransport

a org.eclipse.jgit.transport.PackTransport

uploadPackFactory:UploadPackFactory<C>

a org.eclipse.jgit.transport.resolver.UploadPackFactory

req:C

request

remote:Repository

the remote org.eclipse.jgit.lib.Repository

Exceptions
TransportException:
if any.

Method Detail

closeback to summary
public void close()

Overrides org.eclipse.jgit.transport.BasePackFetchConnection.close.

Implements org.eclipse.jgit.transport.Connection.close.

Doc from org.eclipse.jgit.transport.Connection.close.

Closes this resource, relinquishing any underlying resources. This method is invoked automatically on objects managed by the try-with-resources statement.

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 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.

Annotations
@Override