func (m *MockinstanceWriterManager) Flush() error {
	ret := m.ctrl.Call(m, "Flush")
	ret0, _ := ret[0].(error)
	return ret0
}
Flush mocks base method
package client
import (
	"reflect"
	"github.com/m3db/m3cluster/placement"
	"github.com/golang/mock/gomock"
)
type MockinstanceWriterManager struct {
	ctrl     *gomock.Controller
	recorder *MockinstanceWriterManagerMockRecorder
}
type MockinstanceWriterManagerMockRecorder struct {
	mock *MockinstanceWriterManager
}
func NewMockinstanceWriterManager(ctrl *gomock.Controller) *MockinstanceWriterManager {
	mock := &MockinstanceWriterManager{ctrl: ctrl}
	mock.recorder = &MockinstanceWriterManagerMockRecorder{mock}
	return mock
}
func (m *MockinstanceWriterManager) EXPECT() *MockinstanceWriterManagerMockRecorder {
	return m.recorder
}
func (m *MockinstanceWriterManager) AddInstances(instances []placement.Instance) error {
	ret := m.ctrl.Call(m, "AddInstances", instances)
	ret0, _ := ret[0].(error)
	return ret0
}
func (mr *MockinstanceWriterManagerMockRecorder) AddInstances(instances interface{}) *gomock.Call {
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddInstances", reflect.TypeOf((*MockinstanceWriterManager)(nil).AddInstances), instances)
}
func (m *MockinstanceWriterManager) RemoveInstances(instances []placement.Instance) error {
	ret := m.ctrl.Call(m, "RemoveInstances", instances)
	ret0, _ := ret[0].(error)
	return ret0
}
func (mr *MockinstanceWriterManagerMockRecorder) RemoveInstances(instances interface{}) *gomock.Call {
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveInstances", reflect.TypeOf((*MockinstanceWriterManager)(nil).RemoveInstances), instances)
}
func (m *MockinstanceWriterManager) Write(instance placement.Instance, shardID uint32, payload payloadUnion) error {
	ret := m.ctrl.Call(m, "Write", instance, shardID, payload)
	ret0, _ := ret[0].(error)
	return ret0
}
func (mr *MockinstanceWriterManagerMockRecorder) Write(instance, shardID, payload interface{}) *gomock.Call {
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockinstanceWriterManager)(nil).Write), instance, shardID, payload)
}