Tabnine Logo
PubSubMessage.hasMetadata
Code IndexAdd Tabnine to your IDE (free)

How to use
hasMetadata
method
in
com.yahoo.bullet.pubsub.PubSubMessage

Best Java code snippets using com.yahoo.bullet.pubsub.PubSubMessage.hasMetadata (Showing top 3 results out of 315)

origin: com.yahoo.bullet/bullet-core

/**
 * Check if the message has a {@link Signal}.
 *
 * @return true if message has a signal.
 */
public boolean hasSignal() {
  return hasMetadata() && metadata.hasSignal();
}
origin: com.yahoo.bullet/bullet-core

/**
 * Check if message has a given {@link Signal}.
 *
 * @param signal The signal to check for.
 * @return true if message has the given signal.
 */
public boolean hasSignal(Signal signal) {
  return hasMetadata() && metadata.hasSignal(signal);
}
origin: bullet-db/bullet-storm

Assert.assertEquals(actual.getContent(), "{}");
Assert.assertFalse(actual.hasSignal());
Assert.assertTrue(actual.hasMetadata());
Metadata metadata = actual.getMetadata();
Assert.assertEquals(metadata.getContent(), makeReturnInfo("fakefoo", "testHost", 0));
Assert.assertEquals(actual.getContent(), "{'duration': 2000}");
Assert.assertFalse(actual.hasSignal());
Assert.assertTrue(actual.hasMetadata());
metadata = actual.getMetadata();
Assert.assertEquals(metadata.getContent(), makeReturnInfo("fakefoo", "testHost", 1));
Assert.assertEquals(actual.getContent(), "{}");
Assert.assertFalse(actual.hasSignal());
Assert.assertTrue(actual.hasMetadata());
metadata = actual.getMetadata();
Assert.assertEquals(metadata.getContent(), makeReturnInfo("fakebar", "testHost", 2));
com.yahoo.bullet.pubsubPubSubMessagehasMetadata

Javadoc

Check if message has Metadata.

Popular methods of PubSubMessage

  • <init>
    Constructor for a message having content, Metadata and a sequence number.
  • asJSON
  • getId
  • getMetadata
  • getSequence
  • fromJSON
    Converts a json representation back to an instance.
  • getContent
  • hasSignal
    Check if message has a given Signal.
  • setMetadata

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSupportFragmentManager (FragmentActivity)
  • requestLocationUpdates (LocationManager)
  • onCreateOptionsMenu (Activity)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Top Vim 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