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

io.nats.client.MessageHandler Maven / Gradle / Ivy

There is a newer version: 2.20.2
Show newest version
/*******************************************************************************
 * Copyright (c) 2015-2016 Apcera Inc. All rights reserved. This program and the accompanying
 * materials are made available under the terms of the MIT License (MIT) which accompanies this
 * distribution, and is available at http://opensource.org/licenses/MIT
 *******************************************************************************/

package io.nats.client;

/**
 * A MessageHandler object is used as a callback to receive asynchronously delivered messages.
 *
 */
public interface MessageHandler {

    /**
     * Passes a message to the handler.
     * 
     * @param msg - the received Message that triggered the callback invocation.
     */
    void onMessage(Message msg);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy