01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.net.protocol.delivery;
05:
06: import com.tc.util.Assert;
07:
08: /**
09: *
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: }
|