class InternalPushConnection<C> extends BasePackPushConnection
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Thread |
worker |
CAPABILITY_DELETE_REFS, CAPABILITY_OFS_DELTA, CAPABILITY_PUSH_OPTIONS, CAPABILITY_REPORT_STATUS, CAPABILITY_SIDE_BAND_64KadditionalHaves, in, local, out, outNeedsEnd, pckIn, pckOut, statelessRPC, timeoutIn, timeoutOut, transport, uri| Constructor and Description |
|---|
InternalPushConnection(PackTransport transport,
ReceivePackFactory<C> receivePackFactory,
C req,
Repository remote)
Constructor for InternalPushConnection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
doPush, getPushOptions, noRepository, push, pushaddUserAgentCapability, endOut, getPeerUserAgent, init, isCapableOf, readAdvertisedRefs, wantCapabilityavailable, getMessages, getMessageWriter, getRef, getRefs, getRefsMap, markStartedOperation, setMessageWriter, setPeerUserAgentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMessages, getPeerUserAgent, getRef, getRefs, getRefsMappublic InternalPushConnection(PackTransport transport, ReceivePackFactory<C> receivePackFactory, C req, Repository remote) throws TransportException
transport - a PackTransportreceivePackFactory - a
ReceivePackFactoryreq - a requestremote - the RepositoryTransportException - if any.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.
close in interface java.lang.AutoCloseableclose in interface Connectionclose in class BasePackConnection