Class BulkPublishEntry<T>

java.lang.Object
io.dapr.client.domain.BulkPublishEntry<T>
Type Parameters:
T - Type of the event that is part of the request.

public final class BulkPublishEntry<T> extends Object
Class representing an entry in the BulkPublishRequest or BulkPublishResponse.
  • Constructor Details

    • BulkPublishEntry

      public BulkPublishEntry(String entryId, T event, String contentType)
      Constructor for the BulkPublishRequestEntry object.
      Parameters:
      entryId - A request scoped ID uniquely identifying this entry in the BulkPublishRequest.
      event - Event to be published.
      contentType - Content Type of the event to be published in MIME format.
    • BulkPublishEntry

      public BulkPublishEntry(String entryId, T event, String contentType, Map<String,String> metadata)
      Constructor for the BulkPublishRequestEntry object.
      Parameters:
      entryId - A request scoped ID uniquely identifying this entry in the BulkPublishRequest.
      event - Event to be published.
      contentType - Content Type of the event to be published in MIME format.
      metadata - Metadata for the event.
  • Method Details

    • getEntryId

      public String getEntryId()
    • getEvent

      public T getEvent()
    • getContentType

      public String getContentType()
    • getMetadata

      public Map<String,String> getMetadata()