*/
package org.opendaylight.protocol.pcep;
+import org.opendaylight.protocol.pcep.object.PCEPCloseObject.Reason;
+
import com.google.common.base.Objects.ToStringHelper;
/**
- * Used as a reason when one of the regular reasons was the cause of the termination of a session.
+ * Used as a reason when one of the regular reasons was the cause of the
+ * termination of a session.
*/
public final class PCEPCloseTermination extends PCEPTerminationReason {
- private final TerminationReason reason;
+ private final Reason reason;
/**
* Creates new Termination.
- *
* @param reason reason for termination
*/
- public PCEPCloseTermination(final TerminationReason reason) {
+ public PCEPCloseTermination(final Reason reason) {
super();
this.reason = reason;
}
@Override
protected ToStringHelper addToStringAttributes(final ToStringHelper toStringHelper) {
- return toStringHelper.add("reason", this.reason);
+ return toStringHelper.add("reason", reason);
}
}