public override void SlaveIsAvailable(HighAvailabilityMemberChangeEvent @event) { if (@event.InstanceId.Equals(MyInstanceId)) { // I'm a slave, let the transactions stream in // Pull out the transaction id store at this very moment, because we receive this event // when joining a cluster or switching to a new master and there might have been a store copy // just now where there has been a new transaction id store created. outerInstance.transactionIdStore = outerInstance.transactionIdStoreSupplier.get(); } }
public override void InstanceStops(HighAvailabilityMemberChangeEvent @event) { // clear state to avoid calling out of date objects outerInstance.transactionIdStore = null; }