org.jclouds.compute.predicates
Class RetryIfSocketNotYetOpen

java.lang.Object
  extended by org.jclouds.compute.predicates.RetryIfSocketNotYetOpen
All Implemented Interfaces:
com.google.common.base.Predicate<IPSocket>

public class RetryIfSocketNotYetOpen
extends Object
implements com.google.common.base.Predicate<IPSocket>

Not singleton as seconds are mutable

Author:
Adrian Cole

Constructor Summary
RetryIfSocketNotYetOpen(SocketOpen socketTester, ComputeServiceConstants.Timeouts timeouts)
           
RetryIfSocketNotYetOpen(SocketOpen socketTester, Logger logger)
           
RetryIfSocketNotYetOpen(SocketOpen socketTester, Logger logger, long seconds)
          Deprecated. in favor of specifying explicit time units
RetryIfSocketNotYetOpen(SocketOpen socketTester, Logger logger, long timeoutValue, TimeUnit timeoutUnits)
           
 
Method Summary
 boolean apply(IPSocket socket)
           
 RetryIfSocketNotYetOpen milliseconds(long milliseconds)
           
 RetryIfSocketNotYetOpen seconds(long seconds)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Predicate
equals
 

Constructor Detail

RetryIfSocketNotYetOpen

public RetryIfSocketNotYetOpen(SocketOpen socketTester,
                               Logger logger,
                               long timeoutValue,
                               TimeUnit timeoutUnits)

RetryIfSocketNotYetOpen

public RetryIfSocketNotYetOpen(SocketOpen socketTester,
                               Logger logger)

RetryIfSocketNotYetOpen

@Inject
public RetryIfSocketNotYetOpen(SocketOpen socketTester,
                                      ComputeServiceConstants.Timeouts timeouts)

RetryIfSocketNotYetOpen

@Deprecated
public RetryIfSocketNotYetOpen(SocketOpen socketTester,
                                          Logger logger,
                                          long seconds)
Deprecated. in favor of specifying explicit time units

Method Detail

milliseconds

public RetryIfSocketNotYetOpen milliseconds(long milliseconds)

seconds

public RetryIfSocketNotYetOpen seconds(long seconds)

toString

public String toString()
Overrides:
toString in class Object

apply

public boolean apply(IPSocket socket)
Specified by:
apply in interface com.google.common.base.Predicate<IPSocket>


Copyright © 2009-2011 jclouds. All Rights Reserved.