Class EMultiPublishFeed.Builder

  • Enclosing class:
    EMultiPublishFeed

    public static final class EMultiPublishFeed.Builder
    extends EMultiFeed.Builder<ENotificationMessage,​EPublishFeed,​EPublisher,​EMultiPublishFeed,​EMultiPublishFeed.Builder>
    EMultiPublishFeed.Builder is the mechanism for creating an EMultiPublishFeed instance. A Builder instance is acquired from EMultiPublishFeed.builder(). The following example shows how to create an EMultiPublishFeed instance using a Builder. The code assumes that the target class implements EPublisher interface feedStatus method.
    @Overricde public void startup() {
        final EMultiPublishFeed feed = (EMultiPublishFeed.builder()).target(this)
                                                         .messageClass(CatalogUpdate.class)
                                                         .scope(EFeed.FeedScope.LOCAL_AND_REMOTE)
                                                          // Call .statusCallback(lambda expression) to replace feedStatus method
                                                         .build();
        ...
    }