KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > net > protocol > delivery > OOOProtocolEvent


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.net.protocol.delivery;
5
6 import com.tc.util.Assert;
7
8 /**
9  *
10  */

11 class OOOProtocolEvent {
12   private final OOOProtocolMessage message;
13
14   public OOOProtocolEvent(OOOProtocolMessage msg) {
15     Assert.eval(msg != null);
16     this.message = msg;
17   }
18
19   public OOOProtocolEvent() {
20     this.message = null;
21   }
22
23   public void execute(AbstractStateMachine stateMachine) {
24     stateMachine.execute(message);
25   }
26 }
Popular Tags