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

org.apache.pulsar.broker.transaction.pendingack.proto.PendingAckOp Maven / Gradle / Ivy

There is a newer version: 4.0.0.10
Show newest version
package org.apache.pulsar.broker.transaction.pendingack.proto;
public enum PendingAckOp {
	ACK(1), COMMIT(2), ABORT(3),;
	private final int value;
	private PendingAckOp(int value) {
		this.value = value;
	}
	public int getValue() {
		return value;
	}
	public static PendingAckOp valueOf(int n) {
		switch (n) {
			case 1 :
				return ACK;
			case 2 :
				return COMMIT;
			case 3 :
				return ABORT;
			default :
				return null;

		}
	}
	public static final int ACK_VALUE = 1;
	public static final int COMMIT_VALUE = 2;
	public static final int ABORT_VALUE = 3;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy