OSCPacketDispatcher implements OSCPacketListener { private void dispatchBundle(final Object source, final OSCBundle bundle) { final OSCTimeTag64 timeStamp = bundle.getTimestamp(); if (isAlwaysDispatchingImmediately() || timeStamp.isImmediate()) { dispatchBundleNow(source, bundle); } else { final long delayMs = calculateDelayFromNow(timeStamp); dispatchScheduler.schedule( new BundleDispatcher(source, bundle), delayMs, TimeUnit.MILLISECONDS); } } @SuppressWarnings("WeakerAccess")  OSCPacketDispatcher(
			final OSCSerializerAndParserBuilder serializerBuilder,
			final ScheduledExecutorService dispatchScheduler); @SuppressWarnings("WeakerAccess")  OSCPacketDispatcher(final OSCSerializerAndParserBuilder serializerBuilder);  OSCPacketDispatcher(); @SuppressWarnings("WeakerAccess") static ScheduledExecutorService createDefaultDispatchScheduler(); void setAlwaysDispatchingImmediately(final boolean alwaysDispatchingImmediately); @SuppressWarnings("WeakerAccess") boolean isAlwaysDispatchingImmediately(); @SuppressWarnings("WeakerAccess") boolean isMetaInfoRequired(); void addListener(
			final MessageSelector messageSelector,
			final OSCMessageListener listener); @SuppressWarnings("WeakerAccess") void removeListener(
			final MessageSelector messageSelector,
			final OSCMessageListener listener); @SuppressWarnings("WeakerAccess") void addBadDataListener(final OSCBadDataListener listener); @SuppressWarnings("unused") void removeBadDataListener(final OSCBadDataListener listener); @Override void handleBadData(final OSCBadDataEvent event); @Override void handlePacket(final OSCPacketEvent event); @SuppressWarnings("WeakerAccess")
	static final int MAX_ARGUMENTS; }
@Test public void testDispatchBundle() { OSCBundle bundle = new OSCBundle(); bundle.addPacket(new OSCMessage("/listener1")); bundle.addPacket(new OSCMessage("/listener2")); dispatcher.handlePacket(new OSCPacketEvent(this, bundle)); if (!listener1.isMessageReceived()) { Assert.fail("Bundle didn't dispatch message to listener 1"); } if (!listener2.isMessageReceived()) { Assert.fail("Bundle didn't dispatch message to listener 2"); } }