connectable.java
来自「提供ESB 应用mule源代码 提供ESB 应用mule源代码」· Java 代码 · 共 54 行
JAVA
54 行
/* * $Id: Connectable.java 12606 2008-09-03 17:09:08Z tcarlson $ * -------------------------------------------------------------------------------------- * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com * * The software in this package is published under the terms of the CPAL v1.0 * license, a copy of which has been included with this distribution in the * LICENSE.txt file. */package org.mule.api.transport;import org.mule.api.lifecycle.Disposable;import org.mule.api.lifecycle.Initialisable;import org.mule.api.lifecycle.Startable;import org.mule.api.lifecycle.Stoppable;/** * Interface for objects that should connect to a resource. */public interface Connectable extends Initialisable, Disposable, Startable, Stoppable{ /** * Make the connection to the underlying transport. The fact that this object is * connected or not should have no influence on the lifecycle, especially the * start / stop state if applicable. * * @throws Exception */ void connect() throws Exception; /** * Disconnect the from the underlying transport * * @throws Exception */ void disconnect() throws Exception; /** * Determines if this object is connected or not * * @return */ boolean isConnected(); /** * Returns a string identifying the underlying resource * * @return */ String getConnectionDescription();}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?