mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

matthew_swift
16.58.2009 38131a3a8708255ef27e260aa1adc333632c0ca4
sdk/src/org/opends/sdk/Connections.java
@@ -132,6 +132,7 @@
   */
  public static ConnectionFactory<AsynchronousConnection> newHeartBeatConnectionFactory(
      ConnectionFactory<?> factory, long timeout, TimeUnit unit)
      throws IllegalArgumentException, NullPointerException
  {
    Validator.ensureNotNull(factory, unit);
    Validator.ensureTrue(timeout >= 0, "negative timeout");
@@ -164,7 +165,8 @@
   */
  public static ConnectionFactory<AsynchronousConnection> newHeartBeatConnectionFactory(
      ConnectionFactory<?> factory, long timeout, TimeUnit unit,
      SearchRequest heartBeat) throws NullPointerException
      SearchRequest heartBeat) throws IllegalArgumentException,
      NullPointerException
  {
    Validator.ensureNotNull(factory, unit, heartBeat);
    Validator.ensureTrue(timeout >= 0, "negative timeout");