public class PostUploadHookChain extends java.lang.Object implements PostUploadHook
PostUploadHook that delegates to a list of
other hooks.
Hooks are run in the order passed to the constructor.
| Modifier and Type | Field and Description |
|---|---|
private int |
count |
private PostUploadHook[] |
hooks |
NULL| Modifier | Constructor and Description |
|---|---|
private |
PostUploadHookChain(PostUploadHook[] hooks,
int count) |
| Modifier and Type | Method and Description |
|---|---|
static PostUploadHook |
newChain(java.util.List<? extends PostUploadHook> hooks)
Create a new hook chaining the given hooks together.
|
void |
onPostUpload(PackStatistics stats)
Notifies the hook that a pack has been sent.
|
private final PostUploadHook[] hooks
private final int count
private PostUploadHookChain(PostUploadHook[] hooks, int count)
public static PostUploadHook newChain(java.util.List<? extends PostUploadHook> hooks)
hooks - hooks to execute, in order.public void onPostUpload(PackStatistics stats)
onPostUpload in interface PostUploadHookstats - the statistics gathered by
PackWriter for
the uploaded pack