com.hi3project.broccoli.bsdm.api.asyncronous.IChannelConsumer Maven / Gradle / Ivy
/*******************************************************************************
*
* Copyright (C) 2015 Mytech Ingenieria Aplicada
* Copyright (C) 2015 Alejandro Paz
*
* This file is part of Broccoli.
*
* Broccoli is free software: you can redistribute it and/or modify it under the
* terms of the GNU Affero General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
* Broccoli is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
* A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Broccoli. If not, see .
*
******************************************************************************/
package com.hi3project.broccoli.bsdm.api.asyncronous;
import com.hi3project.broccoli.bsdm.impl.exceptions.ServiceGroundingException;
/**
*
* Description:
* A channel consumer can receive messages syncronously or asyncronously
* (using callbacks of IAsyncMessageClient type).
*
*
*
*/
public interface IChannelConsumer extends IChannel
{
public IMessage getLastReceivedMessage() throws ServiceGroundingException;
public IMessage receiveOrWait() throws ServiceGroundingException;
public IMessage receiveOrWait(long ms) throws ServiceGroundingException;
public void addClientCallback(IAsyncMessageClient clientCallback);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy