jadex.micro.examples.messagequeue.replicated.ReplicationSubscription Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-applications-micro Show documentation
Show all versions of jadex-applications-micro Show documentation
The Jadex micro applications package contains several example applications, benchmarks and testcases using micro agents.
/**
*
*/
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 : "")
+ "]";
}
}