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_64K
additionalHaves, 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, push
addUserAgentCapability, endOut, getPeerUserAgent, init, isCapableOf, readAdvertisedRefs, wantCapability
available, getMessages, getMessageWriter, getRef, getRefs, getRefsMap, markStartedOperation, setMessageWriter, setPeerUserAgent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMessages, getPeerUserAgent, getRef, getRefs, getRefsMap
public InternalPushConnection(PackTransport transport, ReceivePackFactory<C> receivePackFactory, C req, Repository remote) throws TransportException
transport
- a PackTransport
receivePackFactory
- a
ReceivePackFactory
req
- a requestremote
- the Repository
TransportException
- 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.AutoCloseable
close
in interface Connection
close
in class BasePackConnection