io.nadron.client.event.NetworkEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nadclient Show documentation
Show all versions of nadclient Show documentation
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.
package io.nadron.client.event;
import io.nadron.client.communication.DeliveryGuaranty;
/**
* This interface is specifically used for events that will get transmitted to
* remote machine/vm. It contains the {@link DeliveryGuaranty} associated with
* the event so that messages can be transmitted either using TCP or UDP
* transports based on the guaranty defined. Implementations can use RELIABLE as
* default.
*
* @author Abraham Menacherry
*
*/
public interface NetworkEvent extends Event
{
DeliveryGuaranty getDeliveryGuaranty();
void setDeliveryGuaranty(DeliveryGuaranty deliveryGuaranty);
}