anon.infoservice
Class AbstractMixCascadeContainer
java.lang.Object
java.util.Observable
anon.client.BasicTrustModel
anon.infoservice.AbstractMixCascadeContainer
- All Implemented Interfaces:
- ITrustModel, IServiceContainer
- Direct Known Subclasses:
- AbstractAutoSwitchedMixCascadeContainer, AnonProxy.DummyMixCascadeContainer, AnonProxy.EncapsulatedMixCascadeContainer, SimpleMixCascadeContainer
public abstract class AbstractMixCascadeContainer
- extends BasicTrustModel
- implements IServiceContainer
This class keeps and returns one or more objects of the class 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 |
AbstractMixCascadeContainer
public AbstractMixCascadeContainer()
getNextCascade
public abstract MixCascade getNextCascade()
- Must return a MixCascade and never null. The returned MixCascade may change
with every call of this method.
- Returns:
- a MixCascade and never null
getCurrentCascade
public abstract MixCascade getCurrentCascade()
- Returns the last return value of getNextCascade().
- Returns:
- the last return value of getNextCascade() (may be null if no call has been
done yet)
getCurrentService
public final AnonServerDescription getCurrentService()
keepCurrentService
public abstract void keepCurrentService(boolean a_bKeepCurrentService)
- 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
- Parameters:
a_bKeepCurrentService
- allows or dissallows to keep the current cascade for the next call
isServiceAutoSwitched
public abstract boolean isServiceAutoSwitched()
- Specified by:
isServiceAutoSwitched
in interface IServiceContainer
isReconnectedAutomatically
public abstract boolean isReconnectedAutomatically()
- Specified by:
isReconnectedAutomatically
in interface IServiceContainer