Miniature Queue: GSON

TBA.

Лицензия

Лицензия

MIT License
Категории

Категории

Gson Данные JSON
Группа

Группа

com.github.mlk
Идентификатор

Идентификатор

miniature-queue-gson
Последняя версия

Последняя версия

0.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

Miniature Queue: GSON
TBA.
Система контроля версий

Система контроля версий

http://github.com/mlk/miniature-queue

Скачать miniature-queue-gson

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.github.mlk/miniature-queue-gson/ -->
<dependency>
    <groupId>com.github.mlk</groupId>
    <artifactId>miniature-queue-gson</artifactId>
    <version>0.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.mlk/miniature-queue-gson/
implementation 'com.github.mlk:miniature-queue-gson:0.0.1'
// https://jarcasting.com/artifacts/com.github.mlk/miniature-queue-gson/
implementation ("com.github.mlk:miniature-queue-gson:0.0.1")
'com.github.mlk:miniature-queue-gson:jar:0.0.1'
<dependency org="com.github.mlk" name="miniature-queue-gson" rev="0.0.1">
  <artifact name="miniature-queue-gson" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.mlk', module='miniature-queue-gson', version='0.0.1')
)
libraryDependencies += "com.github.mlk" % "miniature-queue-gson" % "0.0.1"
[com.github.mlk/miniature-queue-gson "0.0.1"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
com.github.mlk : miniature-queue-core jar 0.0.1
com.google.code.gson : gson jar 2.6.2

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12

Модули Проекта

Данный проект не имеет модулей.

miniature-queue

Join the chat at https://gitter.im/mlk/miniature-queue Build Status codecov.io API Docs Dependency Status

miniature-queue is a Message Queue abstraction layer inspired by feign and JDBI. It uses annotation based meta-programming to bind an interface to an Message Queue implementation.

Example

@Queue("chat", queueTypeHint=QueueType.FANOUT_QUEUE)
interface Chat {
    @Publish
    void publishMessage(String message);
    @Handle
    void receiveMessage(Function<String, Boolean> action);
}

MessageQueue queue = Queuify.builder().server(createServerObject()).target(MessageQueue.class);
// Set up a listener for new messages.
queue.receiveMessage((x) -> { System.out.println(x); return true; } );
// Sends hello down the line
queue.publishMessage("Hello");

Queue types

Worker Queues

In a worker queue each message is sent to only one listener. The message publisher sends a fire-and-forget message out to the queue for the work to be done.

Fanout (or Publish/Subscribe)

In a fanout queue each message is sent to every listener. The message publisher sends a fire-and-forget message out to the queue for the listners to be informed.

Message Queues supported

Encoding/Decoding objects

Running the tests

Most of the tests for this project are integration tests rather than unit. As such they require the MQ server to be running. In order to make that happen we use Docker. You require either the enviroment variables DOCKER_CERT_PATH and DOCKER_HOST set, or to be running Docker on localhost with the standard port.

Maven Site

Версии библиотеки

Версия
0.0.1