Tabnine Logo
SubscriptionBuilder.withContentType
Code IndexAdd Tabnine to your IDE (free)

How to use
withContentType
method
in
pl.allegro.tech.hermes.test.helper.builder.SubscriptionBuilder

Best Java code snippets using pl.allegro.tech.hermes.test.helper.builder.SubscriptionBuilder.withContentType (Showing top 4 results out of 315)

origin: allegro/hermes

public void createBatchSubscription(Topic topic, String endpoint, BatchSubscriptionPolicy policy) {
  Subscription subscription = subscription(topic, "batchSubscription")
      .withEndpoint(endpoint)
      .withContentType(ContentType.JSON)
      .withSubscriptionPolicy(policy)
      .build();
  createSubscription(topic, subscription);
}
origin: pl.allegro.tech.hermes/hermes-test-helper

public void createBatchSubscription(Topic topic, String endpoint, BatchSubscriptionPolicy policy) {
  Subscription subscription = subscription(topic, "batchSubscription")
      .withEndpoint(endpoint)
      .withContentType(ContentType.JSON)
      .withSubscriptionPolicy(policy)
      .build();
  createSubscription(topic, subscription);
}
origin: allegro/hermes

public Subscription createSubscription(Topic topic,
                    String subscriptionName,
                    String endpoint,
                    ContentType contentType,
                    SubscriptionMode mode,
                    Subscription.State state) {
  Subscription subscription = subscription(topic, subscriptionName)
      .withEndpoint(endpoint)
      .withContentType(contentType)
      .withSubscriptionPolicy(subscriptionPolicy().applyDefaults().build())
      .withMode(mode)
      .withState(state)
      .build();
  return createSubscription(topic, subscription);
}
origin: pl.allegro.tech.hermes/hermes-test-helper

public Subscription createSubscription(Topic topic,
                    String subscriptionName,
                    String endpoint,
                    ContentType contentType,
                    SubscriptionMode mode,
                    Subscription.State state) {
  Subscription subscription = subscription(topic, subscriptionName)
      .withEndpoint(endpoint)
      .withContentType(contentType)
      .withSubscriptionPolicy(subscriptionPolicy().applyDefaults().build())
      .withMode(mode)
      .withState(state)
      .build();
  return createSubscription(topic, subscription);
}
pl.allegro.tech.hermes.test.helper.builderSubscriptionBuilderwithContentType

Popular methods of SubscriptionBuilder

  • build
  • subscription
  • withEndpoint
  • withSubscriptionPolicy
  • <init>
  • withMode
  • withOAuthPolicy
  • withState
  • withRequestTimeout
  • withTrackingMode

Popular in Java

  • Updating database using SQL prepared statement
  • getApplicationContext (Context)
  • getExternalFilesDir (Context)
  • startActivity (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • JLabel (javax.swing)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now