All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.gemstone.org.jgroups.SetStateEvent Maven / Gradle / Ivy

The newest version!
/** Notice of modification as required by the LGPL
 *  This file was modified by Gemstone Systems Inc. on
 *  $Date$
 **/
// $Id: SetStateEvent.java,v 1.4 2005/07/17 11:38:05 chrislott Exp $

package com.gemstone.org.jgroups;






/**
 * Encapsulates a state returned by Channel.receive(), as requested by
 * Channel.getState(s) previously. State could be a single state (as requested by
 * Channel.getState()) or a vector of states (as requested by
 * Channel.getStates()).
 * @author Bela Ban
 */
public class SetStateEvent {
    byte[]     state=null;         // state


    public SetStateEvent(byte[] state) {
	this.state=state;
    }

    public byte[] getArg() {return state;}

    @Override // GemStoneAddition
    public String toString() {return "SetStateEvent[state=" + 
//      state
      (state == null ? "null" : "(" + state.length + " bytes)") // GemStoneAddition
      + ']';}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy