All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.pulsar.common.api.proto.TxnAction Maven / Gradle / Ivy

There is a newer version: 4.0.0.4
Show newest version
package org.apache.pulsar.common.api.proto;
public enum TxnAction {
	COMMIT(0), ABORT(1),;
	private final int value;
	private TxnAction(int value) {
		this.value = value;
	}
	public int getValue() {
		return value;
	}
	public static TxnAction valueOf(int n) {
		switch (n) {
			case 0 :
				return COMMIT;
			case 1 :
				return ABORT;
			default :
				return null;

		}
	}
	public static final int COMMIT_VALUE = 0;
	public static final int ABORT_VALUE = 1;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy