public class

RepositoryMirrorSynchronizedEvent

extends AbstractRepositoryMirrorEvent
java.lang.Object
   ↳ java.util.EventObject
     ↳ com.atlassian.bitbucket.event.ApplicationEvent
       ↳ com.atlassian.bitbucket.event.mirror.AbstractRepositoryMirrorEvent
         ↳ com.atlassian.bitbucket.event.mirror.RepositoryMirrorSynchronizedEvent

Class Overview

This event signals that a Repository has been synchronized on a mirror

Summary

Nested Classes
class RepositoryMirrorSynchronizedEvent.Builder  
[Expand]
Inherited Fields
From class java.util.EventObject
Public Constructors
@Deprecated RepositoryMirrorSynchronizedEvent(Object source, String mirrorServerId, Repository repository, Collection<MinimalRef> failedRefs, Collection<RefChange> refChanges)
This constructor is deprecated. in 6.5 for removal in 7.0. Use RepositoryMirrorSynchronizedEvent.Builder instead.
Public Methods
@Nonnull Collection<MinimalRef> getFailedRefs()
@Nonnull Collection<RefChange> getRefChanges()
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.event.mirror.AbstractRepositoryMirrorEvent
From class com.atlassian.bitbucket.event.ApplicationEvent
From class java.util.EventObject
From class java.lang.Object
From interface com.atlassian.bitbucket.event.mirror.MirrorEvent
From interface com.atlassian.bitbucket.event.mirror.RepositoryMirrorEvent

Public Constructors

@Deprecated public RepositoryMirrorSynchronizedEvent (Object source, String mirrorServerId, Repository repository, Collection<MinimalRef> failedRefs, Collection<RefChange> refChanges)

This constructor is deprecated.
in 6.5 for removal in 7.0. Use RepositoryMirrorSynchronizedEvent.Builder instead.

Parameters
source the object which raised this event
mirrorServerId the id of the mirror for which this event is raised
repository the repository for which this event should be raised
failedRefs Collection of all MinimalRefs that failed to be synced by the mirror
refChanges Collection of all RefChanges that the mirror synced

Public Methods

@Nonnull public Collection<MinimalRef> getFailedRefs ()

Returns
  • a collection of refs which failed to update on the mirror

@Nonnull public Collection<RefChange> getRefChanges ()

Returns
  • a collection of refs successfully updated on the mirror