File tree Expand file tree Collapse file tree
jetclient/src/main/java/org/menacheri/jetclient
jetserver/src/main/java/org/menacheri/jetserver Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -296,7 +296,7 @@ public interface MessageBuffer<T>
296296
297297 /**
298298 * Returns the actual buffer implementation that is wrapped in this
299- * IMessageBuffer instance.
299+ * MessageBuffer instance.
300300 *
301301 * @return This method will return the underlying buffer. For Netty that
302302 * would be a {@link ChannelBuffer}, for a core java implementation
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public class DefaultNetworkEvent extends DefaultEvent implements NetworkEvent
1919 private static final long serialVersionUID = 1L ;
2020
2121 /**
22- * Default constructor which will set the IDeliveryGuaranty to RELIABLE. It
22+ * Default constructor which will set the {@link DeliveryGuaranty} to RELIABLE. It
2323 * will also set the type of the event to {@link Events#NETWORK_MESSAGE}.
2424 */
2525 public DefaultNetworkEvent ()
Original file line number Diff line number Diff line change 55
66/**
77 * Domain object representing a game. This is a convenience implementation of
8- * the IGame interface so that simple games need not implement their own.
8+ * the {@link Game} interface so that simple games need not implement their own.
99 * <b>Note</b> This implementation will throw exception if any of the setter
1010 * methods are invoked. All variables are final in this class and expected to be
1111 * set at object construction.
Original file line number Diff line number Diff line change @@ -296,7 +296,7 @@ public interface MessageBuffer<T> {
296296
297297 /**
298298 * Returns the actual buffer implementation that is wrapped in this
299- * IMessageBuffer instance.
299+ * MessageBuffer instance.
300300 *
301301 * @return This method will return the underlying buffer. For Netty that
302302 * would be a {@link ChannelBuffer}, for a core java implementation
Original file line number Diff line number Diff line change 1- package org .menacheri .jetserver .event ;
2-
3- /**
4- * Abstract event handler is a helper class which must be overriden by classes
5- * which need to implement the IEventHandler interface. The
6- * {@link #onEvent(Event)} method needs to be implemented by such classes.
7- *
8- * @author Abraham Menacherry
9- *
10- */
11- public abstract class AbstractEventHandler implements EventHandler
12- {
13- private final int EVENT_TYPE ;
14-
15- public AbstractEventHandler (int eventType )
16- {
17- this .EVENT_TYPE = eventType ;
18- }
19-
20- @ Override
21- public int getEventType ()
22- {
23- return EVENT_TYPE ;
24- }
25-
26- }
1+ package org .menacheri .jetserver .event ;
2+
3+ /**
4+ * Abstract event handler is a helper class which must be overriden by classes
5+ * which need to implement the {@link EventHandler} interface. The
6+ * {@link #onEvent(Event)} method needs to be implemented by such classes.
7+ *
8+ * @author Abraham Menacherry
9+ *
10+ */
11+ public abstract class AbstractEventHandler implements EventHandler
12+ {
13+ private final int EVENT_TYPE ;
14+
15+ public AbstractEventHandler (int eventType )
16+ {
17+ this .EVENT_TYPE = eventType ;
18+ }
19+
20+ @ Override
21+ public int getEventType ()
22+ {
23+ return EVENT_TYPE ;
24+ }
25+
26+ }
Original file line number Diff line number Diff line change 22
33import org .menacheri .jetserver .communication .DeliveryGuaranty ;
44import org .menacheri .jetserver .communication .DeliveryGuaranty .DeliveryGuarantyOptions ;
5- import org .menacheri .jetserver .event .Events ;
65import org .menacheri .jetserver .event .Event ;
6+ import org .menacheri .jetserver .event .Events ;
77import org .menacheri .jetserver .event .NetworkEvent ;
88
99/**
@@ -19,8 +19,9 @@ public class DefaultNetworkEvent extends DefaultEvent implements NetworkEvent
1919 private static final long serialVersionUID = 6486454029499527617L ;
2020
2121 /**
22- * Default constructor which will set the IDeliveryGuaranty to RELIABLE. It
23- * will also set the type of the event to {@link Events#NETWORK_MESSAGE}.
22+ * Default constructor which will set the {@link DeliveryGuaranty} to
23+ * RELIABLE. It will also set the type of the event to
24+ * {@link Events#NETWORK_MESSAGE}.
2425 */
2526 public DefaultNetworkEvent ()
2627 {
You can’t perform that action at this time.
0 commit comments