-
-
-
Class: event
-
This content has been machine translated dynamically.
Dieser Inhalt ist eine maschinelle Übersetzung, die dynamisch erstellt wurde. (Haftungsausschluss)
Cet article a été traduit automatiquement de manière dynamique. (Clause de non responsabilité)
Este artículo lo ha traducido una máquina de forma dinámica. (Aviso legal)
此内容已经过机器动态翻译。 放弃
このコンテンツは動的に機械翻訳されています。免責事項
이 콘텐츠는 동적으로 기계 번역되었습니다. 책임 부인
Este texto foi traduzido automaticamente. (Aviso legal)
Questo contenuto è stato tradotto dinamicamente con traduzione automatica.(Esclusione di responsabilità))
This article has been machine translated.
Dieser Artikel wurde maschinell übersetzt. (Haftungsausschluss)
Ce article a été traduit automatiquement. (Clause de non responsabilité)
Este artículo ha sido traducido automáticamente. (Aviso legal)
この記事は機械翻訳されています.免責事項
이 기사는 기계 번역되었습니다.책임 부인
Este artigo foi traduzido automaticamente.(Aviso legal)
这篇文章已经过机器翻译.放弃
Questo articolo è stato tradotto automaticamente.(Esclusione di responsabilità))
Translation failed!
Class: event
Asynchronous event registration and handling
Fields for class: event
Field | Type | Qualifier | Description |
---|---|---|---|
class |
string |
RO/constructor | The name of the class of the object that changed |
id |
int |
RO/constructor | An ID, monotonically increasing, and local to the current session |
obj_uuid |
string |
RO/constructor | Deprecated. The uuid of the object that changed |
operation |
event_operation |
RO/constructor | The operation that was performed |
ref |
string |
RO/constructor | A reference to the object that changed |
timestamp |
datetime |
RO/constructor | Deprecated. The time at which the event occurred |
snapshot | object record | RO/runtime | The record of the database object that was added, changed or deleted |
RPCs associated with class: event
RPC name: from
Overview:
Blocking call which returns a new token and a (possibly empty) batch of events. The returned token can be used in subsequent calls to this function.
Signature:
event batch from (session ref session_ref, string set classes, string token, float timeout)
<!--NeedCopy-->
Arguments:
Type | Name | Description |
---|---|---|
session ref |
session_ref |
Reference to a valid session |
string set |
classes |
register for events for the indicated classes |
string |
token |
A token representing the point from which to generate database events. The empty string represents the beginning. |
float |
timeout |
Return after this many seconds if no events match |
Minimum Role: read-only
Return Type: event batch
a structure consisting of a token (‘token’), a map of valid references per object type (‘valid_ref_counts’), and a set of event records (‘events’).
Possible Error Codes: SESSION_NOT_REGISTERED
, EVENTS_LOST
RPC name: get_current_id
Overview:
Return the ID of the next event to be generated by the system
Signature:
int get_current_id (session ref session_ref)
<!--NeedCopy-->
Arguments:
Type | Name | Description |
---|---|---|
session ref |
session_ref |
Reference to a valid session |
Minimum Role: read-only
Return Type: int
the event ID
RPC name: inject
Overview:
Injects an artificial event on the given object and returns the corresponding ID in the form of a token, which can be used as a point of reference for database events. For example, to check whether an object has reached the right state before attempting an operation, one can inject an artificial event on the object and wait until the token returned by consecutive event.from calls is lexicographically greater than the one returned by event.inject.
Signature:
string inject (session ref session_ref, string class, string ref)
<!--NeedCopy-->
Arguments:
Type | Name | Description |
---|---|---|
session ref |
session_ref |
Reference to a valid session |
string |
class |
class of the object |
string |
ref |
A reference to the object that will be changed. |
Minimum Role: read-only
Return Type: string
the event ID in the form of a token
RPC name: next
This message is deprecated.
Overview:
Blocking call which returns a (possibly empty) batch of events. This method is only recommended for legacy use. New development should use event.from which supersedes this method.
Signature:
event record set next (session ref session_ref)
<!--NeedCopy-->
Arguments:
Type | Name | Description |
---|---|---|
session ref |
session_ref |
Reference to a valid session |
Minimum Role: read-only
Return Type: event record set
A set of events
Possible Error Codes: SESSION_NOT_REGISTERED
, EVENTS_LOST
RPC name: register
This message is deprecated.
Overview:
Registers this session with the event system for a set of given classes. This method is only recommended for legacy use in conjunction with event.next.
Signature:
void register (session ref session_ref, string set classes)
<!--NeedCopy-->
Arguments:
Type | Name | Description |
---|---|---|
session ref |
session_ref |
Reference to a valid session |
string set |
classes |
the classes for which the session will register with the event system; specifying * as the desired class will register for all classes |
Minimum Role: read-only
Return Type: void
RPC name: unregister
This message is deprecated.
Overview:
Removes this session’s registration with the event system for a set of given classes. This method is only recommended for legacy use in conjunction with event.next.
Signature:
void unregister (session ref session_ref, string set classes)
<!--NeedCopy-->
Arguments:
Type | Name | Description |
---|---|---|
session ref |
session_ref |
Reference to a valid session |
string set |
classes |
the classes for which the session’s registration with the event system will be removed |
Minimum Role: read-only
Return Type: void
Share
Share
This Preview product documentation is Cloud Software Group Confidential.
You agree to hold this documentation confidential pursuant to the terms of your Cloud Software Group Beta/Tech Preview Agreement.
The development, release and timing of any features or functionality described in the Preview documentation remains at our sole discretion and are subject to change without notice or consultation.
The documentation is for informational purposes only and is not a commitment, promise or legal obligation to deliver any material, code or functionality and should not be relied upon in making Cloud Software Group product purchase decisions.
If you do not agree, select I DO NOT AGREE to exit.