Skip to content
Thomas Muldowney edited this page Apr 14, 2011 · 7 revisions

Schedule a callback for core to send an installed service at the given time. If a service is not running it will be spawned for the callback being fired. Further callbacks are maintained if the locker goes down and will then be fired as soon as possible. The time is only provided within a one second resolution, and the call is only guaranteed to fire at or after the specified time.

Method

GET

URI

This is a service method and must have the sending service id before the method.

URI Example

/9fdfb7e5c6551dc45300aeb0d21fdff4/at

This would schedule the callback to fire against service 9fdfb7e5c6551dc45300aeb0d21fdff4

Arguments

  • at: The time to run the callback specified as POSIX time in seconds.
  • cb: The URL to call against the service specified by id. URI encoded,if a leading / is not given it is added.

Arguments Example

/9fdfb7e5c6551dc45300aeb0d21fdff4/at?at=1302099087&id=&cb=callback

Sets up a callback to the service installed as 9fdfb7e5c6551dc45300aeb0d21fdff4 calling /callback at 2011-04-06 14:11:27Z.

Result Content-Type

application/json

Result

  • 200: true meaning a successful scheduling.
  • 400: An argument was invalid.
  • 404: The service id is not an installed service.
Clone this wiki locally