You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2015/08/07 16:17:29 UTC
[3/5] camel git commit: Polished
Polished
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/91ff7d0b
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/91ff7d0b
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/91ff7d0b
Branch: refs/heads/master
Commit: 91ff7d0b61713dc8c661cac5f1f50205a8914213
Parents: 14efed0
Author: Claus Ibsen <da...@apache.org>
Authored: Fri Aug 7 16:22:36 2015 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Fri Aug 7 16:22:36 2015 +0200
----------------------------------------------------------------------
.../src/main/java/org/apache/camel/support/ServiceSupport.java | 6 ++++++
1 file changed, 6 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/91ff7d0b/camel-core/src/main/java/org/apache/camel/support/ServiceSupport.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/support/ServiceSupport.java b/camel-core/src/main/java/org/apache/camel/support/ServiceSupport.java
index 6cf6105..9280f78 100644
--- a/camel-core/src/main/java/org/apache/camel/support/ServiceSupport.java
+++ b/camel-core/src/main/java/org/apache/camel/support/ServiceSupport.java
@@ -243,10 +243,16 @@ public abstract class ServiceSupport implements StatefulService {
return !isStoppingOrStopped();
}
+ /**
+ * Is the service in progress of being stopped or already stopped
+ */
public boolean isStoppingOrStopped() {
return stopping.get() || stopped.get();
}
+ /**
+ * Is the service in progress of being suspended or already suspended
+ */
public boolean isSuspendingOrSuspended() {
return suspending.get() || suspended.get();
}