1 21 package net.sf.hajdbc.distributable; 22 23 import net.sf.hajdbc.DatabaseCluster; 24 import net.sf.hajdbc.DatabaseClusterBuilder; 25 26 30 public class DistributableDatabaseClusterBuilder implements DatabaseClusterBuilder 31 { 32 private String protocol; 33 private int timeout; 34 35 39 public String getProtocol() 40 { 41 return this.protocol; 42 } 43 44 47 public void setProtocol(String protocol) 48 { 49 this.protocol = protocol; 50 } 51 52 56 public int getTimeout() 57 { 58 return this.timeout; 59 } 60 61 64 public void setTimeout(int timeout) 65 { 66 this.timeout = timeout; 67 } 68 69 72 public DatabaseCluster buildDatabaseCluster() 73 { 74 return new DistributableDatabaseCluster(this); 75 } 76 } 77 | Popular Tags |