| | |
| | | */ |
| | | public static ConnectionFactory<AsynchronousConnection> newHeartBeatConnectionFactory( |
| | | ConnectionFactory<?> factory, long timeout, TimeUnit unit) |
| | | throws IllegalArgumentException, NullPointerException |
| | | { |
| | | Validator.ensureNotNull(factory, unit); |
| | | Validator.ensureTrue(timeout >= 0, "negative timeout"); |
| | |
| | | */ |
| | | 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"); |