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

jadex.micro.examples.messagequeue.replicated.ReplicationSubscription Maven / Gradle / Ivy

Go to download

The Jadex micro applications package contains several example applications, benchmarks and testcases using micro agents.

There is a newer version: 4.0.267
Show newest version
/**
 * 
 */
package jadex.micro.examples.messagequeue.replicated;

import jadex.commons.future.ISubscriptionIntermediateFuture;
import jadex.micro.examples.messagequeue.Event;


/**
 * @author thomas
 */
public class ReplicationSubscription
{
	private IMessageQueueReplicationService			service			= null;
	private ISubscriptionIntermediateFuture	subscription	= null;

	/**
	 * @param service
	 * @param subscription
	 */
	public ReplicationSubscription(IMessageQueueReplicationService service,
		ISubscriptionIntermediateFuture subscription)
	{
		this.service = service;
		this.subscription = subscription;
	}

	/**
	 * @return the service
	 */
	public IMessageQueueReplicationService getService()
	{
		return service;
	}

	/**
	 * @param service the service to set
	 */
	public void setService(IMessageQueueReplicationService service)
	{
		this.service = service;
	}

	/**
	 * @return the subscription
	 */
	public ISubscriptionIntermediateFuture getSubscription()
	{
		return subscription;
	}

	/**
	 * @param subscription the subscription to set
	 */
	public void setSubscription(ISubscriptionIntermediateFuture subscription)
	{
		this.subscription = subscription;
	}

	/**
	 *  Get the string representation.
	 */
	public String toString()
	{
		return "ReplicationSubscription ["
			+ (service != null ? "service=" + service + ", " : "")
			+ (subscription != null ? "subscription=" + subscription : "")
			+ "]";
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy