Top Fields Constructors Methods
org.eclipse.jgit.transport

pack-priv Class InternalPushConnection<C>

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

Field Summary

Modifier and TypeField and Description
private Thread
Inherited from org.eclipse.jgit.transport.BasePackPushConnection:
CAPABILITY_DELETE_REFSCAPABILITY_OFS_DELTACAPABILITY_PUSH_OPTIONSCAPABILITY_REPORT_STATUSCAPABILITY_SIDE_BAND_64K

Constructor Summary

AccessConstructor and Description
public
InternalPushConnection(PackTransport transport, final ReceivePackFactory<C> receivePackFactory, final C
a request
req
,
final Repository remote)

Constructor for InternalPushConnection.

Method Summary

Modifier and TypeMethod and Description
public void
close()

Overrides org.eclipse.jgit.transport.BasePackConnection.close.

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

Closes this resource, relinquishing any underlying resources.

Inherited from org.eclipse.jgit.transport.BasePackPushConnection:
doPushgetPushOptionsisUseBitmapsnoRepositorypushpush

Field Detail

workerback to summary
private Thread worker

Constructor Detail

InternalPushConnectionback to summary
public InternalPushConnection(PackTransport transport, final ReceivePackFactory<C> receivePackFactory, final C req, final Repository remote) throws TransportException

Constructor for InternalPushConnection.

Parameters
transport:PackTransport

a org.eclipse.jgit.transport.PackTransport

receivePackFactory:ReceivePackFactory<C>

a org.eclipse.jgit.transport.resolver.ReceivePackFactory

req:C

a request

remote:Repository

the org.eclipse.jgit.lib.Repository

Exceptions
TransportException:
if any.

Method Detail

closeback to summary
public void close()

Overrides org.eclipse.jgit.transport.BasePackConnection.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