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

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

Go to download

Nadron is a high speed socket based java game server written using Netty and Mike Rettig's Jetlang. It is specifically tuned for network based multiplayer games and supports TCP and UDP network protocols.

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


/**
 * The delivery guaranty for the underlying network transport protocol.
 * Implementations should be immutable.
 * 
 * @author Abraham Menacherry
 * 
 */
public interface DeliveryGuaranty
{
	public enum DeliveryGuarantyOptions implements DeliveryGuaranty
	{
		RELIABLE(0),FAST(1);
		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