func NewStopPolicy(name string, errorThreshold int) *StopPolicy {
	s := new(StopPolicy)
	s.Name = name
	s.errorCount = 0
	s.MaximumErrorThreshold = errorThreshold
	s.SyncObject = new(sync.Mutex)
	return s
}
// NewStopPolicy creates an object of StopPolicy
NewStopPolicy creates an object of StopPolicy
// NewStopPolicy creates an object of StopPolicy
func NewStopPolicy(name string, errorThreshold int) *StopPolicy {
	s := new(StopPolicy)
	s.Name = name
	s.errorCount = 0
	s.MaximumErrorThreshold = errorThreshold
	s.SyncObject = new(sync.Mutex)
	return s
}
func NewStopPolicy ( name string , errorThreshold int ) * StopPolicy { s := new ( StopPolicy ) s . Name = name s . errorCount = 0 s . MaximumErrorThreshold = errorThreshold s . SyncObject = new ( sync . Mutex ) return s }
NewStopPolicy creates an object of StopPolicy
NewStopPolicy creates an object of StopPolicy