IceInternal.DispatchObserverI Maven / Gradle / Ivy
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
package IceInternal;
public class DispatchObserverI
extends IceMX.ObserverWithDelegate
implements Ice.Instrumentation.DispatchObserver
{
@Override
public void
userException()
{
forEach(_userException);
if(_delegate != null)
{
_delegate.userException();
}
}
@Override
public void
reply(final int size)
{
forEach(new MetricsUpdate()
{
@Override
public void
update(IceMX.DispatchMetrics v)
{
v.replySize += size;
}
});
if(_delegate != null)
{
_delegate.reply(size);
}
}
final private MetricsUpdate _userException = new MetricsUpdate()
{
@Override
public void
update(IceMX.DispatchMetrics v)
{
++v.userException;
}
};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy