Package com.netflix.staash.mesh.client

Examples of com.netflix.staash.mesh.client.Client.shutdown()


     * @param instanceInfo
     */
    private void removePeer(InstanceInfo instanceInfo) {
        System.out.println("Removing peer " + this.instanceInfo + " -> " + instanceInfo);
        Client client = peers.remove(instanceInfo);
        client.shutdown();
    }
   
    /**
     * Add a new peer connection
     * @param instanceInfo
View Full Code Here


     */
    private void disconnectPeer(InstanceInfo instanceInfo) {
        System.out.println("Disconnect peer " + this.instanceInfo + " -> " + instanceInfo);
        Client client = peers.remove(instanceInfo);
        if (client != null) {
            client.shutdown();
        }
        else {
            System.out.println(instanceInfo + " > " + peers);
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.