anon.infoservice
Class SimpleMixCascadeContainer
java.lang.Object
java.util.Observable
anon.client.BasicTrustModel
anon.infoservice.AbstractMixCascadeContainer
anon.infoservice.SimpleMixCascadeContainer
- All Implemented Interfaces:
- ITrustModel, IServiceContainer
public class SimpleMixCascadeContainer
- extends AbstractMixCascadeContainer
Takes and returns a single MixCascade.
- Author:
- Rolf Wendolsky
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_mixCascade
private MixCascade m_mixCascade
m_bAutoReConnect
private boolean m_bAutoReConnect
SimpleMixCascadeContainer
public SimpleMixCascadeContainer(MixCascade a_mixCascade)
getNextCascade
public MixCascade getNextCascade()
- Description copied from class:
AbstractMixCascadeContainer
- Must return a MixCascade and never null. The returned MixCascade may change
with every call of this method.
- Specified by:
getNextCascade
in class AbstractMixCascadeContainer
- Returns:
- a MixCascade and never null
getCurrentCascade
public MixCascade getCurrentCascade()
- Description copied from class:
AbstractMixCascadeContainer
- Returns the last return value of getNextCascade().
- Specified by:
getCurrentCascade
in class AbstractMixCascadeContainer
- Returns:
- the last return value of getNextCascade() (may be null if no call has been
done yet)
isServiceAutoSwitched
public boolean isServiceAutoSwitched()
- Specified by:
isServiceAutoSwitched
in interface IServiceContainer
- Specified by:
isServiceAutoSwitched
in class AbstractMixCascadeContainer
setAutoReConnect
public void setAutoReConnect(boolean b)
isReconnectedAutomatically
public boolean isReconnectedAutomatically()
- Specified by:
isReconnectedAutomatically
in interface IServiceContainer
- Specified by:
isReconnectedAutomatically
in class AbstractMixCascadeContainer
keepCurrentService
public void keepCurrentService(boolean a_bKeepCurrentCascade)
- Description copied from class:
AbstractMixCascadeContainer
- Optional method that should allow to return the last MixCascade (Service) that was returned
by getNextService() also the next time this method is called.
- Specified by:
keepCurrentService
in interface IServiceContainer
- Specified by:
keepCurrentService
in class AbstractMixCascadeContainer
- Parameters:
a_bKeepCurrentCascade
- allows or dissallows to keep the current cascade for the next call