public class StateChangeEvent extends Object
statechange at a node to the StateChangeListener. There is a distinct instance of this event representing each state change at a node.
Each event instance may have zero or more state change related exceptions
associated with it. The exceptions are of type
StateChangeException has a method called
StateChangeException.getEvent() that can be used to associate an event with
|Modifier and Type||Method and Description|
Returns the time (in nano second units) the event occurred, as reported by
Returns the node name identifying the master at the time of the event.
Returns the state that the node has transitioned to.
public ReplicatedEnvironment.State getState()
resulting from this event
public long getEventTime()
Copyright (c) 2004, 2014 Oracle and/or its affiliates. All rights reserved.