org.bidib.wizard.gateway.service.ProxyConnectionAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bidibwizard-gateway Show documentation
Show all versions of bidibwizard-gateway Show documentation
jBiDiB BiDiB Wizard Gateway POM
package org.bidib.wizard.gateway.service;
import org.bidib.jbidibc.messages.HostAdapter;
import org.bidib.jbidibc.messages.exception.ProtocolException;
import org.bidib.jbidibc.messages.message.BidibMessageInterface;
import org.bidib.wizard.api.model.connection.AbstractMessageEvent;
import org.bidib.wizard.gateway.model.connection.ProxyBidibConnection;
public interface ProxyConnectionAdapter {
/**
* Process the bidib message that was received from the guest.
*
* @param bidibProxyConnection
* the proxy connection
* @param distributedHostAdapter
* the host adapter
* @param bidibMessage
* the bidib message
* @throws ProtocolException
*/
void processBidibMessageFromGuest(
final ProxyBidibConnection bidibProxyConnection,
final HostAdapter distributedHostAdapter, final BidibMessageInterface bidibMessage)
throws ProtocolException;
/**
* Handle the message event that signals a change from the node on the bus.
*
* @param bidibProxyConnection
* the proxy connection instance
* @param distributedHostAdapter
* the host adapter
* @param event
* the message event
*/
void handleMessageEventFromBus(
final ProxyBidibConnection bidibProxyConnection,
final HostAdapter distributedHostAdapter, final AbstractMessageEvent event);
}