Package com.hellblazer.gossip

Examples of com.hellblazer.gossip.UdpCommunications$GossipHandler


    public int                     sendBufferMultiplier    = UdpCommunications.DEFAULT_SEND_BUFFER_MULTIPLIER;
    public long                    unreachableDelay        = (int) TimeUnit.DAYS.toMillis(2);

    public Gossip construct() throws SocketException {
        Random entropy = new Random();
        UdpCommunications comms = constructUdpComms();
        SystemView view = new SystemView(entropy, comms.getLocalAddress(),
                                         seeds, quarantineDelay,
                                         unreachableDelay);
        return new Gossip(Generators.timeBasedGenerator(), comms, view,
                          getFdFactory(), entropy, gossipInterval, gossipUnit,
                          cleanupCycles, heartbeatCycle, redundancy);
View Full Code Here


                    }
                });
                return daemon;
            }
        };
        return new UdpCommunications(
                                     getEndpoint(),
                                     Executors.newFixedThreadPool(commThreads,
                                                                  threadFactory),
                                     receiveBufferMultiplier,
                                     sendBufferMultiplier, getMac());
View Full Code Here

TOP

Related Classes of com.hellblazer.gossip.UdpCommunications$GossipHandler

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.