01: // $Id: SetStateEvent.java,v 1.6 2006/03/17 09:04:45 belaban Exp $
02:
03: package org.jgroups;
04:
05: /**
06: * Encapsulates a state returned by <code>Channel.receive()</code>, as requested by
07: * <code>Channel.getState(s)</code> previously.
08: * @author Bela Ban
09: * @version $Id: SetStateEvent.java,v 1.6 2006/03/17 09:04:45 belaban Exp $
10: */
11: public class SetStateEvent {
12: byte[] state = null;
13: String state_id = null;
14:
15: public SetStateEvent(byte[] state, String state_id) {
16: this .state = state;
17: this .state_id = state_id;
18: }
19:
20: public byte[] getArg() {
21: return state;
22: }
23:
24: public String getStateId() {
25: return state_id;
26: }
27:
28: public String toString() {
29: return "SetStateEvent[state=" + state + ", state_id="
30: + state_id + ']';
31: }
32:
33: }
|