@Test public void testSetInitialPermits() { SemaphoreConfig semaphoreConfig = new SemaphoreConfig().setInitialPermits(1234); assertTrue(semaphoreConfig.getInitialPermits() == 1234); }
public SemaphoreConfig setInitialPermits(int initialPermits) { this.initialPermits = initialPermits; return this; }
SemaphoreConfig implements DataSerializable { public SemaphoreConfig setInitialPermits(int initialPermits) { this.initialPermits = initialPermits; return this; } }
SemaphoreConfig implements DataSerializable { public SemaphoreConfig setInitialPermits(int initialPermits) { this.initialPermits = initialPermits; return this; } SemaphoreConfig();  SemaphoreConfig(String name);  SemaphoreConfig(String name, int initialPermits);  SemaphoreConfig(String name, SemaphoreConfig sc); }
SemaphoreConfig implements DataSerializable { public SemaphoreConfig setInitialPermits(int initialPermits) { this.initialPermits = initialPermits; return this; } SemaphoreConfig();  SemaphoreConfig(String name);  SemaphoreConfig(String name, int initialPermits);  SemaphoreConfig(String name, SemaphoreConfig sc); void readData(DataInput in); void writeData(DataOutput out); String getName(); String getFactoryClassName(); SemaphoreConfig setFactoryClassName(String factoryClassName); boolean isFactoryEnabled(); SemaphoreConfig setFactoryEnabled(boolean factoryEnabled); SemaphoreFactory getFactoryImplementation(); SemaphoreConfig setFactoryImplementation(SemaphoreFactory factoryImplementation); int getInitialPermits(); SemaphoreConfig setInitialPermits(int initialPermits); @Override String toString(); }
SemaphoreConfig implements DataSerializable { public SemaphoreConfig setInitialPermits(int initialPermits) { this.initialPermits = initialPermits; return this; } SemaphoreConfig();  SemaphoreConfig(String name);  SemaphoreConfig(String name, int initialPermits);  SemaphoreConfig(String name, SemaphoreConfig sc); void readData(DataInput in); void writeData(DataOutput out); String getName(); String getFactoryClassName(); SemaphoreConfig setFactoryClassName(String factoryClassName); boolean isFactoryEnabled(); SemaphoreConfig setFactoryEnabled(boolean factoryEnabled); SemaphoreFactory getFactoryImplementation(); SemaphoreConfig setFactoryImplementation(SemaphoreFactory factoryImplementation); int getInitialPermits(); SemaphoreConfig setInitialPermits(int initialPermits); @Override String toString();  }