Package jadex.micro.quickstart
Interface ITimeService
-
- All Known Implementing Classes:
TimeProviderAgent
public interface ITimeService
Simple service to publish the local system time. As the service does not change the local system and provides no sensitive information, no security restrictions are required.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IFuture<java.lang.String>
getLocation()
Get the location of the platform, where the time service runs.ISubscriptionIntermediateFuture<java.lang.String>
subscribe(java.text.DateFormat format)
Subscribe to the time service.
-
-
-
Method Detail
-
getLocation
IFuture<java.lang.String> getLocation()
Get the location of the platform, where the time service runs.
-
subscribe
ISubscriptionIntermediateFuture<java.lang.String> subscribe(java.text.DateFormat format)
Subscribe to the time service. Every couple of seconds, a string with the current time will be sent to the subscriber.
-
-