org.distributeme.support.eventservice.EventServiceRMIBridgeService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of distributeme-support Show documentation
Show all versions of distributeme-support Show documentation
distributeme support utilities needed by generated classes
package org.distributeme.support.eventservice;
import net.anotheria.anoprise.eventservice.EventTransportShell;
import net.anotheria.anoprise.metafactory.Service;
import org.distributeme.annotation.DistributeMe;
import org.distributeme.annotation.SupportService;
import org.distributeme.core.ServiceDescriptor;
@DistributeMe( factoryClazz=EventServiceRMIBridgeServiceFactory.class)
@SupportService
public interface EventServiceRMIBridgeService extends Service {
public void deliverEvent(EventTransportShell shell) throws EventServiceRMIBridgeServiceException;
public void registerRemoteConsumer(String channelName, ServiceDescriptor myReference) throws EventServiceRMIBridgeServiceException;
public void registerRemoteSupplier(String channelName, ServiceDescriptor myReference) throws EventServiceRMIBridgeServiceException;
/**
* Returns the instanceid of this instance. This is needed to separate between crashed/ended and restarted services on same port.
* @return
* @throws EventServiceRMIBridgeServiceException
*/
public String getInstanceId() throws EventServiceRMIBridgeServiceException;
}