diff options
Diffstat (limited to 'java/src/IceInternal/CollocatedObserverI.java')
-rw-r--r-- | java/src/IceInternal/CollocatedObserverI.java | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/java/src/IceInternal/CollocatedObserverI.java b/java/src/IceInternal/CollocatedObserverI.java new file mode 100644 index 00000000000..e2355935dca --- /dev/null +++ b/java/src/IceInternal/CollocatedObserverI.java @@ -0,0 +1,32 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +package IceInternal; + +public class CollocatedObserverI + extends IceMX.ObserverWithDelegate<IceMX.CollocatedMetrics, Ice.Instrumentation.CollocatedObserver> + implements Ice.Instrumentation.CollocatedObserver +{ + public void + reply(final int size) + { + forEach(new MetricsUpdate<IceMX.CollocatedMetrics>() + { + public void + update(IceMX.CollocatedMetrics v) + { + v.replySize += size; + } + }); + if(_delegate != null) + { + _delegate.reply(size); + } + } +} |