diff options
author | Martin Ritchie <ritchiem@apache.org> | 2010-05-20 15:18:59 +0000 |
---|---|---|
committer | Martin Ritchie <ritchiem@apache.org> | 2010-05-20 15:18:59 +0000 |
commit | 1a1e020836ce829c53a35b48fec4b4ce3a920292 (patch) | |
tree | 10f7b70017a3ab2d2dffd360ade9bd779311c7b2 /qpid/java/common/src/main/java | |
parent | f9519bef9ac1eb52792b50ae96e346ea2272bd78 (diff) | |
download | qpid-python-1a1e020836ce829c53a35b48fec4b4ce3a920292.tar.gz |
QPID-2622 : Add Closeable interface and update Broker components to use it and add close method in ApplicationRegistry to safely perform the close.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@946667 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/common/src/main/java')
-rw-r--r-- | qpid/java/common/src/main/java/org/apache/qpid/common/Closeable.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/qpid/java/common/src/main/java/org/apache/qpid/common/Closeable.java b/qpid/java/common/src/main/java/org/apache/qpid/common/Closeable.java new file mode 100644 index 0000000000..45a98b5843 --- /dev/null +++ b/qpid/java/common/src/main/java/org/apache/qpid/common/Closeable.java @@ -0,0 +1,27 @@ +/* + * + * 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.common; + + +public interface Closeable +{ + public void close(); +} |