Commit 99bfac27 authored by Björn Richerzhagen's avatar Björn Richerzhagen
Browse files

Default Interface for SubscriptionInfo

parent 06b74a80
......@@ -22,12 +22,35 @@ package de.tudarmstadt.maki.simonstrator.api.component.pubsub.analyzer;
/**
* An object that can be attached to a subscription by an application to enable
* easier analyzing in simulation mode.
* easier analyzing in simulation mode. This object is NOT transmitted to
* brokers.
*
* @author Bjoern Richerzhagen
*
*/
public interface SubscriptionInfo {
/**
* True, if this subscription is active on the client
*
* @return
*/
public boolean isActive();
/**
* host-ID of the originator of this subscription
*
* @return
*/
public long getOriginatorHostId();
/**
* Time this subscription was created (!) by the overlay. If it is not
* immediately published by the app, this can not be used to calculate
* delays.
*
* @return
*/
public long getTimestampOfCreation();
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment