Class ObserverWithDelegate<T extends Metrics,O extends Observer>

java.lang.Object
com.zeroc.IceUtilInternal.StopWatch
com.zeroc.IceMX.Observer<T>
com.zeroc.IceMX.ObserverWithDelegate<T,O>
All Implemented Interfaces:
Observer
Direct Known Subclasses:
ObserverWithDelegateI

public class ObserverWithDelegate<T extends Metrics,O extends Observer> extends Observer<T>
  • Field Details

    • _delegate

      protected O extends Observer _delegate
  • Constructor Details

    • ObserverWithDelegate

      public ObserverWithDelegate()
  • Method Details

    • attach

      public void attach()
      Description copied from interface: Observer
      This method is called when the instrumented object is created or when the observer is attached to an existing object.
      Specified by:
      attach in interface Observer
      Overrides:
      attach in class Observer<T extends Metrics>
    • detach

      public void detach()
      Description copied from interface: Observer
      This method is called when the instrumented object is destroyed and as a result the observer detached from the object.
      Specified by:
      detach in interface Observer
      Overrides:
      detach in class Observer<T extends Metrics>
    • failed

      public void failed(String exceptionName)
      Description copied from interface: Observer
      Notification of a failure.
      Specified by:
      failed in interface Observer
      Overrides:
      failed in class Observer<T extends Metrics>
      Parameters:
      exceptionName - The name of the exception.
    • getDelegate

      public O getDelegate()
    • setDelegate

      public void setDelegate(O del)
    • getObserver

      public <S extends Metrics, ObserverImpl extends ObserverWithDelegate<S, Obs>, Obs extends Observer> Obs getObserver(String mapName, MetricsHelper<S> helper, Class<S> mcl, Class<ObserverImpl> ocl, Obs delegate)