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

io.nadron.client.communication.DeliveryGuaranty Maven / Gradle / Ivy

Go to download

This is a client library for Nadron server https://github.com/menacher/java-game-server/tree/netty4/nadron. Java clients can use this program to connect and interact with nadron server.

There is a newer version: 0.5
Show newest version
package io.nadron.client.communication;

/**
 * The delivery guaranty for the underlying network transport protocol.
 * Implementations should be immutable.
 * 
 * @author Abraham Menacherry
 * 
 */
public interface DeliveryGuaranty
{
	/**
	 * An enumeration which implements {@link DeliveryGuaranty}. Used to
	 * abstract out the TCP and UDP transports.
	 * 
	 * @author Abraham Menacherry
	 * 
	 */
	public enum DeliveryGuarantyOptions implements DeliveryGuaranty
	{
		RELIABLE(1), FAST(2);
		final int guaranty;

		DeliveryGuarantyOptions(int guaranty)
		{
			this.guaranty = guaranty;
		}

		public int getGuaranty()
		{
			return guaranty;
		}
	}

	/**
	 * Return the associated integer guaranty constant.
	 * 
	 * @return returns the integer guaranty.
	 */
	public int getGuaranty();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy