diff options
author | edwardsmj <edwardsmj@13f79535-47bb-0310-9956-ffa450edef68> | 2011-01-17 13:21:43 +0000 |
---|---|---|
committer | edwardsmj <edwardsmj@13f79535-47bb-0310-9956-ffa450edef68> | 2011-01-17 13:21:43 +0000 |
commit | 5199bd5be30f2a1481a41dee9ce59f0575e92402 (patch) | |
tree | 15384974bb4a79037ed7072278dd330cb3c1a287 | |
parent | b7f9e65ef17ccb487166cbaed7c3fa9afd626eed (diff) |
Mark several fields as "transient" in ResponseDispatchImpl to reduce data that is serialized unnecessarily.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1059915 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | sca-java-2.x/trunk/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/ResponseDispatchImpl.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sca-java-2.x/trunk/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/ResponseDispatchImpl.java b/sca-java-2.x/trunk/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/ResponseDispatchImpl.java index 8c1650096a..dcbf83262e 100644 --- a/sca-java-2.x/trunk/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/ResponseDispatchImpl.java +++ b/sca-java-2.x/trunk/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/ResponseDispatchImpl.java @@ -69,14 +69,14 @@ public class ResponseDispatchImpl<T> implements ResponseDispatch<T>, Serializabl // A latch used to ensure that the sendResponse() and sendFault() operations are used at most once // The latch is initialized with the value "false" - private AtomicBoolean latch = new AtomicBoolean(); + private transient AtomicBoolean latch = new AtomicBoolean(); - private final Lock lock = new ReentrantLock(); - private final Condition completed = lock.newCondition(); + private transient final Lock lock = new ReentrantLock(); + private transient final Condition completed = lock.newCondition(); // The result - private volatile T response = null; - private volatile Throwable fault = null; + private transient volatile T response = null; + private transient volatile Throwable fault = null; private ExtensionPointRegistry registry; |