com.gemstone.org.jgroups.SetStateEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gemfire-jgroups Show documentation
Show all versions of gemfire-jgroups Show documentation
SnappyData store based off Pivotal GemFireXD
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
+ ']';}
}