1 // $Id: SetStateEvent.java,v 1.3 2004/07/05 14:17:36 belaban Exp $ 2 3 package org.jgroups; 4 5 6 7 8 9 10 /** 11 * Encapsulates a state returned by <code>Channel.receive()</code>, as requested by 12 * <code>Channel.getState(s)</code> previously. State could be a single state (as requested by 13 * <code>Channel.getState</code>) or a vector of states (as requested by 14 * <code>Channel.getStates</code>). 15 * @author Bela Ban 16 */ 17 public class SetStateEvent { 18 byte[] state=null; // state 19 20 21 public SetStateEvent(byte[] state) { 22 this.state=state; 23 } 24 25 public byte[] getArg() {return state;} 26 27 public String toString() {return "SetStateEvent[state=" + state + ']';} 28 29 } 30