All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.karalabe.iris.TopicHandler Maven / Gradle / Ivy

Go to download

Iris is an attempt at bringing the simplicity and elegance of cloud computing to the application layer. Consumer clouds provide unlimited virtual machines at the click of a button, but leaves it to developer to wire them together. Iris ensures that you can forget about networking challenges and instead focus on solving your own domain problems. It is a completely decentralized messaging solution for simplifying the design and implementation of cloud services. Among others, Iris features zero-configuration (i.e. start it up and it will do its magic), semantic addressing (i.e. application use textual names to address each other), clusters as units (i.e. automatic load balancing between apps of the same name) and perfect secrecy (i.e. all network traffic is encrypted).

There is a newer version: 1.0.0-preview-7
Show newest version
// Copyright (c) 2014 Project Iris. All rights reserved.
//
// The current language binding is an official support library of the Iris
// cloud messaging framework, and as such, the same licensing terms apply.
// For details please see http://iris.karalabe.com/downloads#License
package com.karalabe.iris;

import org.jetbrains.annotations.NotNull;

/**
 * Callback interface for processing events from a single subscribed topic.
 */
public interface TopicHandler {
    /**
     * Callback invoked whenever an event is published to the topic subscribed to
     * by this particular handler.
     * @param event binary data contents of the published event
     */
    default void handleEvent(@NotNull final byte[] event) {}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy