/** {@inheritDoc} */ @Nullable @Override public V1 get(Object key) { if (GridFunc.isAll((K)key, preds)) { V v = map.get(key); if (v != null) return clos.apply((K)key, v); } return null; }
for (D e : c) { for (IgniteBiClosure<? super D, ? super B, B> f : fs) b = f.apply(e, b);
/** {@inheritDoc} */ @Override public FileIO create(File file, OpenOption... openOption) throws IOException { FileIO fileIO = null; if (createClo != null) fileIO = createClo.apply(file, openOption); return fileIO != null ? fileIO : delegateFactory.create(file, openOption); }
/** * @param addr Address. * @param msg Message. */ private synchronized void apply(ClusterNode addr, TcpDiscoveryAbstractMessage msg) { if (!(msg instanceof TcpDiscoveryCustomEventMessage)) return; TcpDiscoveryCustomEventMessage cm = (TcpDiscoveryCustomEventMessage)msg; DiscoveryCustomMessage delegate; try { DiscoverySpiCustomMessage custMsg = cm.message(marshaller(), U.resolveClassLoader(ignite().configuration())); assertNotNull(custMsg); delegate = ((CustomMessageWrapper)custMsg).delegate(); } catch (Throwable throwable) { throw new RuntimeException(throwable); } if (clo != null) clo.apply(addr, delegate); }
/** * @param addr Address. * @param msg Message. */ private synchronized void apply(ClusterNode addr, TcpDiscoveryAbstractMessage msg) { if (!(msg instanceof TcpDiscoveryCustomEventMessage)) return; TcpDiscoveryCustomEventMessage cm = (TcpDiscoveryCustomEventMessage)msg; DiscoveryCustomMessage delegate; try { DiscoverySpiCustomMessage custMsg = cm.message(marshaller(), U.resolveClassLoader(ignite().configuration())); assertNotNull(custMsg); delegate = ((CustomMessageWrapper)custMsg).delegate(); } catch (Throwable throwable) { throw new RuntimeException(throwable); } if (clo != null) clo.apply(addr, delegate); }
boolean success = scenario.apply(latchMgr, syncLatch);
/** {@inheritDoc} */ @SuppressWarnings({"unchecked"}) @Nullable @Override public V1 get(Object key) { if (GridFunc.isAll((K)key, preds)) { V v = map.get(key); if (v != null) return clos.apply((K)key, v); } return null; }
@SuppressWarnings({"ErrorNotRethrown", "CatchGenericClass"}) @Override public void applyx(IgniteInternalFuture<B> embedded) { try { onDone(c.apply(embedded.get(), null)); } catch (IgniteCheckedException | RuntimeException e) { onDone(c.apply(null, e)); } catch (Error e) { onDone(e); throw e; } } });
for (D e : c) { for (IgniteBiClosure<? super D, ? super B, B> f : fs) b = f.apply(e, b);