Codota Logo
IpcSenderService.add
Code IndexAdd Codota to your IDE (free)

How to use
add
method
in
com.nextdoor.bender.ipc.IpcSenderService

Best Java code snippets using com.nextdoor.bender.ipc.IpcSenderService.add (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: Nextdoor/bender

@Test(expected = TransportException.class)
public void testExceptionEscalation() throws TransportException, InterruptedException {
 DummyTransporter mockDummyTransporter = mock(DummyTransporter.class);
 DummyTransporterFactory tfactory = new DummyTransporterFactory();
 tfactory.transporter = mockDummyTransporter;
 doThrow(new TransportException("expected exception in test")).when(mockDummyTransporter)
   .sendBatch(any(DummyTransportBuffer.class));
 IpcSenderService ipc = new IpcSenderService(tfactory);
 ipc.add(mock(InternalEvent.class));
 /*
  * Expect shutdown to throw a TransportException when a child thread also throws as
  * TransportException
  */
 ipc.flush();
}
origin: Nextdoor/bender

InternalEvent ie = new DummyEvent("" + i, 0, part1);
sent1.add(ie);
ipc.add(ie);
InternalEvent ie = new DummyEvent("" + i, 0, part2);
sent2.add(ie);
ipc.add(ie);
InternalEvent ie = new DummyEvent("" + i, 0, part3);
sent1.add(ie);
ipc.add(ie);
origin: Nextdoor/bender

 this.getIpcService().add(ievent);
} catch (TransportException e) {
 logger.warn("error adding event", e);
origin: Nextdoor/bender

 this.getIpcService().add(ievent);
} catch (TransportException e) {
 logger.warn("error adding event", e);
origin: Nextdoor/bender

ie.setPartitions(new LinkedHashMap(0));
sent.add(ie);
ipc.add(ie);
origin: Nextdoor/bender

ipc.add(mock(InternalEvent.class));
origin: Nextdoor/bender

ipc.add(mock(InternalEvent.class));
com.nextdoor.bender.ipcIpcSenderServiceadd

Javadoc

Adds single event to internal buffer. If buffer fills up then it is drained and sent asynchronously. Then the event is then added to an empty buffer.

Popular methods of IpcSenderService

  • <init>
  • flush
    Sends remaining contents of all buffers and waits for all calls to finish.
  • getSuccessCountStat
  • getContext
  • getErrorCountStat
  • getRuntimeStat
  • send
    Drains buffer and sends batch asynchronously via Transport.
  • setContext
  • shutdown
  • getTransportFactory
  • setErrorCountStat
  • setRuntimeStat
  • setErrorCountStat,
  • setRuntimeStat,
  • setSuccessCountStat,
  • setTransportFactory

Popular in Java

  • Reactive rest calls using spring rest template
  • compareTo (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JComboBox (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
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