All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zbus.net.http.MessageClientFactory Maven / Gradle / Ivy

There is a newer version: 7.2.2
Show newest version
package org.zbus.net.http;

import org.zbus.net.ClientFactory;
import org.zbus.net.IoDriver;

/**
 * This factory is mainly used by Pool in kit package, a dynamic MessageClient pool can be 
 * created by Pool.getPool(MessageClientFactory instance, poolConfig)
 * 
 * The underlying pool implementation is decided by Pool class.
 * @author rushmore (洪磊明)
 *
 */
public class MessageClientFactory extends ClientFactory { 
	public MessageClientFactory(String serverAddress){
		super(serverAddress);
	}
	
	public MessageClientFactory(String serverAddress, IoDriver driver){
		super(serverAddress, driver); 
	} 

	public MessageClient createObject() { 
		return new MessageClient(serverAddress, eventDriver);
	}  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy