AS.takeEvent()

Signature

Object takeEvent(String destinationUri, SimpleEvent key)

Domain

ACTION, CONDITION, QUERY, BUI

Description

Returns and atomically removes from the space the event (if one exists) whose event key fields match the key fields of the event provided.

Parameters

NameTypeDescription
destinationUriStringAS Destination URI
keySimpleEventThe key of event

Returns

TypeDescription
SimpleEvent or Object[N][2]The event with specific key, null if not found