io.nadron.communication.DeliveryGuaranty Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nadron Show documentation
Show all versions of nadron Show documentation
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.
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();
}