Package net.tomp2p.rpc

Examples of net.tomp2p.rpc.DefaultBloomfilterFactory


          //builder.contentKeys() can be null if we search for all
          routingBuilder.contentKey(builder.contentKeys().iterator().next());
        }
        else if(builder.contentKeys() != null && builder.contentKeys().size() > 1) {
          //builder.contentKeys() can be null if we search for all
          DefaultBloomfilterFactory factory = new DefaultBloomfilterFactory();
          SimpleBloomFilter<Number160> bf = factory.createContentKeyBloomFilter();
          for (Number160 contentKey : builder.contentKeys()) {
            bf.add(contentKey);
          }
          routingBuilder.keyBloomFilter(bf);
        }
View Full Code Here


    peerBean.peerMap(peerMap);
    peerBean.keyPair(keyPair);

    if (bloomfilterFactory == null) {
      peerBean.bloomfilterFactory(new DefaultBloomfilterFactory());
    }

    if (broadcastHandler == null) {
      broadcastHandler = new DefaultBroadcastHandler(peer, new Random());
    }
View Full Code Here

TOP

Related Classes of net.tomp2p.rpc.DefaultBloomfilterFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.