diff options
| author | Rajith Muditha Attapattu <rajith@apache.org> | 2010-04-22 00:03:56 +0000 |
|---|---|---|
| committer | Rajith Muditha Attapattu <rajith@apache.org> | 2010-04-22 00:03:56 +0000 |
| commit | 49902715d753ef740af36a47e9ee9e98c3735227 (patch) | |
| tree | 5e04c4dd38e99a5100089a934596bec2bf70b3e5 /java/common/src/main | |
| parent | efb0bd0b298dd086309fa409643737b4e3b8dab5 (diff) | |
| download | qpid-python-49902715d753ef740af36a47e9ee9e98c3735227.tar.gz | |
QPID-2508, Committing a patch from Emmanuel Bourg
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@936575 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/common/src/main')
| -rw-r--r-- | java/common/src/main/java/org/apache/qpid/util/concurrent/Condition.java | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/java/common/src/main/java/org/apache/qpid/util/concurrent/Condition.java b/java/common/src/main/java/org/apache/qpid/util/concurrent/Condition.java deleted file mode 100644 index bbd1722677..0000000000 --- a/java/common/src/main/java/org/apache/qpid/util/concurrent/Condition.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ -package org.apache.qpid.util.concurrent; - - -/** - * Condition - * - */ - -public class Condition -{ - - private boolean value = false; - - public synchronized void set() - { - value = true; - notifyAll(); - } - - public synchronized boolean get(long timeout) throws InterruptedException - { - if (!value) - { - wait(timeout); - } - - return value; - } - -} |
