Package org.eclipse.jgit.transport
Interface PostUploadHook
- All Known Implementing Classes:
PostUploadHookChain
public interface PostUploadHook
Hook invoked by
UploadPack
after the pack
has been uploaded.
Implementors of the interface are responsible for associating the current
thread to a particular connection, if they need to also include connection
information. One method is to use a ThreadLocal
to remember
the connection information before invoking UploadPack.
- Since:
- 4.1
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
onPostUpload
(PackStatistics stats) Notifies the hook that a pack has been sent.
-
Field Details
-
NULL
A simple no-op hook.
-
-
Method Details
-
onPostUpload
Notifies the hook that a pack has been sent.- Parameters:
stats
- the statistics gathered byPackWriter
for the uploaded pack
-