com.karalabe.iris.TopicHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iris Show documentation
Show all versions of iris Show documentation
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).
// 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) {}
}