01 package com.x8ing.lsm4j.state;
02
03 /**
04 * A graph can be configured to run infinite or with a hard limit of transitions.
05 * If in the hard limit mode the count of transitions exceeds the specified limit, this
06 * exception is thrown, regardless if the current state is an end state or not.
07 * <p>
08 * {@link com.x8ing.lsm4j.state.ProcessableGraph#setMaximumLoops(long)}
09 *
10 * @author Patrick Heusser
11 */
12 public class MaximumIterationsReachedException extends AbstractProcessableGraphException {
13
14 private static final long serialVersionUID = 1L;
15
16 private long maximumIterationsSpecified = -1;
17
18 public long getMaximumIterationsSpecified() {
19 return maximumIterationsSpecified;
20 }
21
22 public void setMaximumIterationsSpecified(long maximumIterationsSpecified) {
23 this.maximumIterationsSpecified = maximumIterationsSpecified;
24 }
25
26 }
|