org.zbus.net.http.MessageClientFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zbus Show documentation
Show all versions of zbus Show documentation
lightweight message queue, service bus
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