Skip to content

Repository files navigation

meshware-common

BuildLicenseMaven CentralPercentage of issues still open

Overview

A general-purpose common utility library for the Meshware ecosystem, referenced from joyrpc. Provides reusable infrastructure components for building high-performance distributed systems.

Modules

ModulePackageDescription
Time Wheelio.meshware.common.timerHierarchical hash-wheel timer with DelayQueue-based slot expiration. Supports one-shot delay and periodic scheduling.
Event Busio.meshware.common.eventSPI-based event bus using joyrpc extension mechanism. Supports publish/subscribe with per-group dispatcher threads.
Concurrencyio.meshware.common.concurrentDaemon thread lifecycle management, named thread factory, timed waiter abstractions, and executor service factory.
Retryio.meshware.common.retryPluggable retry policy framework with configurable retry count and sleep interval.
Utilitiesio.meshware.common.utilCached reflection (ClassUtils), CompletableFuture helpers (Futures), safe close/destroy, shutdown hooks, resource loading.
Entityio.meshware.common.entityAsync result wrapper and generic response entity.
Exceptionio.meshware.common.exceptionDomain exceptions: creation, reflection, method overload, and system-level errors.

How to Use

Requirements

  • JDK 8+
  • Gradle 7+ (project uses Gradle Wrapper)

Maven Dependency

<!-- https://mvnrepository.com/artifact/io.meshware/common -->
<dependency>
<groupId>io.meshware</groupId>
<artifactId>common</artifactId>
<version>0.0.2</version>
</dependency>

Gradle Dependency

// https://mvnrepository.com/artifact/io.meshware/common
implementation 'io.meshware:common:0.0.2'

Build

./gradlew build # compile + test + package
./gradlew test# run tests only
./gradlew javadocJar # generate javadoc jar

License

meshware-common is licensed under the Apache License 2.0.

About

General component module

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages