diff options
Diffstat (limited to 'java-compat/test/src/main/java/test/Ice/metrics/ChildInvocationObserverI.java')
-rw-r--r-- | java-compat/test/src/main/java/test/Ice/metrics/ChildInvocationObserverI.java | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/java-compat/test/src/main/java/test/Ice/metrics/ChildInvocationObserverI.java b/java-compat/test/src/main/java/test/Ice/metrics/ChildInvocationObserverI.java new file mode 100644 index 00000000000..326fe35f269 --- /dev/null +++ b/java-compat/test/src/main/java/test/Ice/metrics/ChildInvocationObserverI.java @@ -0,0 +1,31 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2016 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 test.Ice.metrics; + +class ChildInvocationObserverI extends ObserverI implements Ice.Instrumentation.ChildInvocationObserver +{ + @Override + public synchronized void + reset() + { + super.reset(); + replySize = 0; + } + + @Override + public synchronized void + reply(int s) + { + replySize += s; + } + + int replySize; +}; + |