Package 

Class RestAnnotations


  • 
    public class RestAnnotations
    
                        

    The RestAnnotation class provides methods to manage and interact with annotations associated with messages in a specific channel.

    Annotations can be retrieved, published, or deleted both synchronously and asynchronously. This class is intended as part of a client library for managing annotations via REST architecture.

    Note: This is an experimental API. While the underlying functionality is stable, the public API may change in future releases.

    • Method Detail

      • get

         PaginatedResult<Annotation> get(String messageSerial, Array<Param> params)

        Retrieves a paginated list of annotations associated with the specified message serial.

        Note: This is an experimental API. While the underlying functionality is stable,the public API may change in future releases.

        Parameters:
        messageSerial - the unique serial identifier for the message being annotated.
        params - an array of query parameters for filtering or modifying the request.
      • getAsync

         void getAsync(String messageSerial, Array<Param> params, Callback<AsyncPaginatedResult<Annotation>> callback)

        Asynchronously retrieves a paginated list of annotations associated with the specified message serial.

        Note: This is an experimental API. While the underlying functionality is stable,the public API may change in future releases.

        Parameters:
        messageSerial - the unique serial identifier for the message being annotated.
        params - an array of query parameters for filtering or modifying the request.
        callback - a callback to handle the result asynchronously, providing an AsyncPaginatedResult containing the matching annotations.
      • get

         PaginatedResult<Annotation> get(String messageSerial)

        Retrieves a paginated list of annotations associated with the specified message serial.

        Note: This is an experimental API. While the underlying functionality is stable,the public API may change in future releases.

        Parameters:
        messageSerial - the unique serial identifier for the message being annotated
      • getAsync

         void getAsync(String messageSerial, Callback<AsyncPaginatedResult<Annotation>> callback)

        Asynchronously retrieves a paginated list of annotations associated with the specified message serial.

        Note: This is an experimental API. While the underlying functionality is stable,the public API may change in future releases.

        Parameters:
        messageSerial - the unique serial identifier for the message being annotated.
        callback - a callback to handle the result asynchronously, providing an AsyncPaginatedResult containing the matching annotations.
      • publish

         void publish(String messageSerial, Annotation annotation)

        Publishes an annotation associated with the specified message serialto the REST channel.

        Note: This is an experimental API. While the underlying functionality is stable,the public API may change in future releases.

        Parameters:
        messageSerial - the unique serial identifier for the message being annotated.
        annotation - the annotation to be published.
      • publishAsync

         void publishAsync(String messageSerial, Annotation annotation, Callback<Void> callback)

        Asynchronously publishes an annotation associated with the specified message serialto the REST channel.

        Note: This is an experimental API. While the underlying functionality is stable,the public API may change in future releases.

        Parameters:
        messageSerial - the unique serial identifier for the message being annotated.
        annotation - the annotation to be published.
        callback - a callback to handle the result asynchronously, providing acompletion indication or error information.
      • delete

         void delete(String messageSerial, Annotation annotation)

        Deletes an annotation associated with the specified message serial.

        Note: This is an experimental API. While the underlying functionality is stable,the public API may change in future releases.

        Parameters:
        messageSerial - the unique serial identifier for the message being annotated.
        annotation - the annotation to be deleted.
      • deleteAsync

         void deleteAsync(String messageSerial, Annotation annotation, Callback<Void> callback)

        Asynchronously deletes an annotation associated with the specified message serial.

        Note: This is an experimental API. While the underlying functionality is stable,the public API may change in future releases.

        Parameters:
        messageSerial - the unique serial identifier for the message being annotated.
        annotation - the annotation to be deleted.
        callback - a callback to handle the result asynchronously, providing a completionindication or error information.