code: public void setListeners(RetryListener[] listeners) {
  		this.listeners = Arrays.asList(listeners)
  				.toArray(new RetryListener[listeners.length]);
  	}
docs: Setter for listeners. The listeners are executed before and after a retry block
  (i.e. before and after all the attempts), and on an error (every attempt).
  @param listeners the {@link RetryListener}s
  @see RetryListener