org.jboss.jms.client.state
Interface HierarchicalState

All Known Implementing Classes:
BrowserState, ConnectionState, ConsumerState, HierarchicalStateSupport, ProducerState, SessionState

public interface HierarchicalState

Any state that is Hierarchical in nature implements this interface (e.g. a connection has child sessions). Or, a session has child consumers, producers and browsers.

Version:
$Revision: 2868 $ $Id: HierarchicalState.java 2868 2007-07-10 20:22:16Z timfox $
Author:
Tim Fox, Clebert Suconic, Ovidiu Feodorov

Method Summary
 java.util.Set getChildren()
           
 DelegateSupport getDelegate()
           
 HierarchicalState getParent()
           
 Version getVersionToUse()
           
 void setDelegate(DelegateSupport delegate)
           
 void setParent(HierarchicalState parent)
           
 void synchronizeWith(HierarchicalState newState)
          Update my own state based on the new state.
 

Method Detail

getChildren

java.util.Set getChildren()

getDelegate

DelegateSupport getDelegate()

setDelegate

void setDelegate(DelegateSupport delegate)

getParent

HierarchicalState getParent()

setParent

void setParent(HierarchicalState parent)

getVersionToUse

Version getVersionToUse()

synchronizeWith

void synchronizeWith(HierarchicalState newState)
                     throws java.lang.Exception
Update my own state based on the new state.

Throws:
java.lang.Exception


Copyright © 2006 JBoss Inc. All Rights Reserved.