From 097c50992b011bdea771692ef3368b9965bde015 Mon Sep 17 00:00:00 2001 From: edwardsmj Date: Wed, 30 Jun 2010 05:53:06 +0000 Subject: Adding asyncServer flag to operations in support of TUSCANY-3611 git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@959198 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/org/apache/tuscany/sca/interfacedef/Operation.java | 6 ++++++ .../org/apache/tuscany/sca/interfacedef/impl/OperationImpl.java | 8 ++++++++ 2 files changed, 14 insertions(+) (limited to 'sca-java-2.x/trunk') diff --git a/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/Operation.java b/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/Operation.java index 1757ab3c92..c71225c9e2 100644 --- a/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/Operation.java +++ b/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/Operation.java @@ -116,6 +116,12 @@ public interface Operation extends Cloneable, PolicySubject { * @return */ boolean isNonBlocking(); + + /** + * Indicate if the operation is an async server operation + * @return - true if the operation is an async server operation + */ + boolean isAsyncServer(); /** * Set the operation to be non-blocking diff --git a/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/impl/OperationImpl.java b/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/impl/OperationImpl.java index 0acb326a47..606782466d 100644 --- a/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/impl/OperationImpl.java +++ b/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/impl/OperationImpl.java @@ -271,4 +271,12 @@ public class OperationImpl implements Operation { return attributes; } + /** + * Indicates if this operation is an async server style of operation + * @return true if the operation is async server style + */ + public boolean isAsyncServer() { + return false; + } + } -- cgit v1.2.3