com.zusmart.basic.cycle.Stable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zusmart-basic Show documentation
Show all versions of zusmart-basic Show documentation
基础模块,提供配置,日志,SPI,图排序,路径匹配,资源扫描,包扫描,常用工具类
package com.zusmart.basic.cycle;
public interface Stable> extends Eventable {
public void start() throws Exception;
public void close() throws Exception;
public StableType getStableType();
public boolean isRunning();
public boolean isStarting();
public boolean isClosing();
public boolean isClosed();
public boolean isFailed();
public void attachStartingListener(L listener);
public void detachStartingListener(L listener);
public void attachStartSuccessListener(L listener);
public void detachStartSuccessListener(L listener);
public void attachStartFailureListener(L listener);
public void detachStartFaulureListener(L listener);
public void attachClosingListener(L listener);
public void detachClosingListener(L listener);
public void attachCloseSuccessListener(L listener);
public void detachCloseSuccessListener(L listener);
public void attachCloseFailureListener(L listener);
public void detachCloseFailureListener(L listener);
}