io.github.sinri.drydock.naval.melee.Galley Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of DryDock Show documentation
Show all versions of DryDock Show documentation
Prototype Library for Keel Based Java Projects.
package io.github.sinri.drydock.naval.melee;
import io.github.sinri.drydock.naval.base.Warship;
import io.github.sinri.keel.logger.issue.center.KeelIssueRecordCenter;
import io.vertx.core.Future;
import io.vertx.core.VertxOptions;
/**
* 桨帆船。
* 一种最为简易的,可自由拓展性最强的Warship实现,可以用于实现各种场景。
* Absolutely customized VertxOptions to initialize, standalone or clustered.
* Pure STDOUT logger.
* Fundamental Keel Initialization.
*
* @since 1.0.0
* @since 1.1.0 extends Warship
*/
public abstract class Galley extends Warship {
public VertxOptions buildVertxOptions() {
return new VertxOptions()
.setWorkerPoolSize(32);
}
/**
* @since 1.3.4
*/
@Override
protected KeelIssueRecordCenter buildIssueRecordCenter() {
return KeelIssueRecordCenter.outputCenter();
}
@Override
protected final Future launchAsWarship() {
return launchAsGalley();
}
/**
* 在桨帆船的基础上安装模块。
*/
abstract protected Future launchAsGalley();
}