📄 connectable.java
字号:
/* * $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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -