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

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

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

		}
	}
	public static final int Shared_VALUE = 0;
	public static final int Exclusive_VALUE = 1;
	public static final int WaitForExclusive_VALUE = 2;
	public static final int ExclusiveWithFencing_VALUE = 3;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy