Tabnine Logo
UUIDCollectionMessage
Code IndexAdd Tabnine to your IDE (free)

How to use
UUIDCollectionMessage
in
org.apache.ignite.internal.util

Best Java code snippets using org.apache.ignite.internal.util.UUIDCollectionMessage (Showing top 11 results out of 315)

origin: apache/ignite

  @Override public Collection<UUID> apply(UUIDCollectionMessage msg) {
    return msg.uuids();
  }
};
origin: apache/ignite

  @Override public UUIDCollectionMessage apply(Collection<UUID> uuids) {
    return new UUIDCollectionMessage(uuids);
  }
};
origin: apache/ignite

/**
 *
 */
@Test
public void testMarshal() {
  UUIDCollectionMessage um0 = UUIDCollectionMessage.of();
  UUIDCollectionMessage um1 = UUIDCollectionMessage.of(randomUUID());
  UUIDCollectionMessage um2 = UUIDCollectionMessage.of(randomUUID(), randomUUID());
  UUIDCollectionMessage um3 = UUIDCollectionMessage.of(randomUUID(), randomUUID(), randomUUID());
  assertNull(um0);
  assertEquals(3, um3.uuids().size());
  proto = 2;
  doTestMarshal(um0, um1, um2, um3);
  proto = 1;
  doTestMarshal(um0, um1, um2, um3);
}
origin: apache/ignite

/** {@inheritDoc} */
@Override public boolean writeTo(ByteBuffer buf, MessageWriter writer) {
  writer.setBuffer(buf);
  if (!writer.isHeaderWritten()) {
    if (!writer.writeHeader(directType(), fieldsCount()))
      return false;
    writer.onHeaderWritten();
  }
  switch (writer.state()) {
    case 0:
      if (!writer.writeCollection("uuids", uuids, MessageCollectionItemType.UUID))
        return false;
      writer.incrementState();
  }
  return true;
}
origin: org.apache.ignite/ignite-core

/** {@inheritDoc} */
@Override public boolean writeTo(ByteBuffer buf, MessageWriter writer) {
  writer.setBuffer(buf);
  if (!writer.isHeaderWritten()) {
    if (!writer.writeHeader(directType(), fieldsCount()))
      return false;
    writer.onHeaderWritten();
  }
  switch (writer.state()) {
    case 0:
      if (!writer.writeCollection("uuids", uuids, MessageCollectionItemType.UUID))
        return false;
      writer.incrementState();
  }
  return true;
}
origin: org.apache.ignite/ignite-core

  @Override public Collection<UUID> apply(UUIDCollectionMessage msg) {
    return msg.uuids();
  }
};
origin: apache/ignite

/**
 * @param uuids UUIDs.
 * @return Message.
 */
public static UUIDCollectionMessage of(UUID... uuids) {
  if (uuids == null || uuids.length == 0)
    return null;
  List<UUID> list = uuids.length == 1 ? Collections.singletonList(uuids[0]) : Arrays.asList(uuids);
  return new UUIDCollectionMessage(list);
}
origin: org.apache.ignite/ignite-core

  @Override public UUIDCollectionMessage apply(Collection<UUID> uuids) {
    return new UUIDCollectionMessage(uuids);
  }
};
origin: org.apache.ignite/ignite-core

/**
 * @param uuids UUIDs.
 * @return Message.
 */
public static UUIDCollectionMessage of(UUID... uuids) {
  if (uuids == null || uuids.length == 0)
    return null;
  List<UUID> list = uuids.length == 1 ? Collections.singletonList(uuids[0]) : Arrays.asList(uuids);
  return new UUIDCollectionMessage(list);
}
origin: apache/ignite

msg = new UUIDCollectionMessage();
origin: org.apache.ignite/ignite-core

msg = new UUIDCollectionMessage();
org.apache.ignite.internal.utilUUIDCollectionMessage

Javadoc

Collection of UUIDs.

Most used methods

  • uuids
  • <init>
  • directType
  • fieldsCount
  • of

Popular in Java

  • Parsing JSON documents to java classes using gson
  • findViewById (Activity)
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (Timer)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Github Copilot alternatives
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