01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tc.net.protocol.delivery;
06:
07: /**
08: *
09: */
10: public class AbstractState implements State {
11:
12: private final String name;
13:
14: public AbstractState(String name) {
15: this .name = name;
16: }
17:
18: public void enter() {
19: // override me if you want
20: }
21:
22: public void execute(OOOProtocolMessage protocolMessage) {
23: // override me if you want
24: }
25:
26: public String toString() {
27: return name;
28: }
29: }
|