Skip to content

Commit 8e587fa

Browse files
committed
Inital commit of network event.
1 parent 2737e2f commit 8e587fa

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package org.menacheri.jetclient.event;
2+
3+
import org.menacheri.jetclient.communication.IDeliveryGuaranty;
4+
5+
/**
6+
* This interface is specifically used for events that will get transmitted to
7+
* remote machine/vm. It contains the {@link IDeliveryGuaranty} associated with
8+
* the event so that messages can be transmitted either using TCP or UDP
9+
* transports based on the guaranty defined. Implementations can use RELIABLE as
10+
* default.
11+
*
12+
* @author Abraham Menacherry
13+
*
14+
*/
15+
public interface INetworkEvent extends IEvent
16+
{
17+
IDeliveryGuaranty getDeliveryGuaranty();
18+
19+
void setDeliveryGuaranty(IDeliveryGuaranty deliveryGuaranty);
20+
}

0 commit comments

Comments
 (0)