io.nats.stan.MessageHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-nats-streaming Show documentation
Show all versions of java-nats-streaming Show documentation
Client library for working with the NATS messaging system.
/*******************************************************************************
* 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.stan;
/**
* 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(io.nats.stan.Message msg);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy