From b70c5f38dca07d23edead557ec0a2a2ce585c23e Mon Sep 17 00:00:00 2001 From: Rajith Muditha Attapattu Date: Thu, 22 Apr 2010 00:03:56 +0000 Subject: QPID-2498 Committing a patch from Emmanuel Bourg git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@936575 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/qpid/util/concurrent/Condition.java | 50 ---------------------- 1 file changed, 50 deletions(-) delete mode 100644 qpid/java/common/src/main/java/org/apache/qpid/util/concurrent/Condition.java (limited to 'qpid/java/common/src/main') diff --git a/qpid/java/common/src/main/java/org/apache/qpid/util/concurrent/Condition.java b/qpid/java/common/src/main/java/org/apache/qpid/util/concurrent/Condition.java deleted file mode 100644 index bbd1722677..0000000000 --- a/qpid/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; - } - -} -- cgit v1.2.1