カーソルを作成する
ストリーミング・サービスにカーソルを作成します。カーソルとは、ストリーム内のロケーションを指すポインタです。このロケーションは、パーティション内の特定のオフセットまたは時間を指すポインタでも、グループの現在のロケーションを指すポインタでもかまいません。カーソルを使用してストリームを消費します。
このタスクはコンソールを使用して実行できません。 oci streaming stream cursor create-cursorコマンドおよび必要なパラメータを使用して、カーソルを作成します:
oci streaming stream cursor create-cursor --stream-id <stream_OCID> --partition <partition> --type <cursor_type> --endpoint <messages_endpoint>
例:
oci streaming stream cursor create-cursor --stream-id ocid1.stream.oc1.phx.exampleuniqueID --partition 0 --type TRIM_HORIZON --endpoint https://cell-1.streaming.us-phoenix-1.oci.oraclecloud.com { "data": { "value": "examplecursorvalue" } }
CLIコマンドのパラメータおよび値の完全なリストは、CLIコマンド・リファレンスを参照してください。
CreateCursor操作を実行してカーソルを作成します。