Codota Logo
EventType.canonicalize
Code IndexAdd Codota to your IDE (free)

How to use
canonicalize
method
in
io.atomix.primitive.event.EventType

Best Java code snippets using io.atomix.primitive.event.EventType.canonicalize (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: atomix/atomix

@Override
public void addEventListener(EventType eventType, Consumer<PrimitiveEvent> listener) {
 eventListeners.computeIfAbsent(eventType.canonicalize(), t -> Sets.newLinkedHashSet()).add(listener);
}
origin: atomix/atomix

/**
 * Adds an event listener to the session.
 *
 * @param listener the event listener callback
 */
public void addEventListener(EventType eventType, Consumer<PrimitiveEvent> listener) {
 executor.execute(() -> eventListeners.computeIfAbsent(eventType.canonicalize(), e -> Sets.newLinkedHashSet()).add(listener));
}
origin: atomix/atomix

@Override
public void removeEventListener(EventType eventType, Consumer<PrimitiveEvent> listener) {
 eventListeners.computeIfAbsent(eventType.canonicalize(), t -> Sets.newLinkedHashSet()).remove(listener);
}
origin: atomix/atomix

/**
 * Removes an event listener from the session.
 *
 * @param listener the event listener callback
 */
public void removeEventListener(EventType eventType, Consumer<PrimitiveEvent> listener) {
 executor.execute(() -> eventListeners.computeIfAbsent(eventType.canonicalize(), e -> Sets.newLinkedHashSet()).remove(listener));
}
origin: atomix/atomix

@Override
public synchronized void addEventListener(EventType eventType, Consumer<PrimitiveEvent> consumer) {
 eventListeners.put(eventType.canonicalize(), consumer);
 SessionClient proxy = this.session;
 if (proxy != null) {
  proxy.addEventListener(eventType, consumer);
 }
}
origin: atomix/atomix

@Override
public synchronized void removeEventListener(EventType eventType, Consumer<PrimitiveEvent> consumer) {
 eventListeners.remove(eventType.canonicalize(), consumer);
 SessionClient proxy = this.session;
 if (proxy != null) {
  proxy.removeEventListener(eventType, consumer);
 }
}
io.atomix.primitive.eventEventTypecanonicalize

Javadoc

Returns an identical event type in canonical form.

Popular methods of EventType

  • canonical
    Simplifies the given event type.
  • from
    Creates a new Raft event identifier.
  • id

Popular in Java

  • Updating database using SQL prepared statement
  • putExtra (Intent)
  • requestLocationUpdates (LocationManager)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
  • JFrame (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now