Examples of withTimeout()


Examples of com.github.dockerjava.api.command.StopContainerCmd.withTimeout()

        StopContainerCmd stopContainerCmd = client.stopContainerCmd(containerId);

        Integer timeout = DockerHelper.getProperty(DockerConstants.DOCKER_TIMEOUT, configuration, message, Integer.class);
       
        if (timeout != null) {
            stopContainerCmd.withTimeout(timeout);
        }
            
        return stopContainerCmd;

    }
View Full Code Here

Examples of com.xebialabs.overthere.cifs.winrm.soap.HeaderBuilder.withTimeout()

        HeaderBuilder header = envelope.header();
        header.to(targetURL.toURI()).replyTo(new URI("http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous"));
        header.maxEnvelopeSize(winRmEnvelopSize);
        header.withId(getUUID());
        header.withLocale(winRmLocale);
        header.withTimeout(winRmTimeout);
        header.withAction(action.getUri());
        if (shellId != null) {
            header.withShellId(shellId);
        }
        header.withResourceURI(resourceURI.getUri());
View Full Code Here

Examples of org.elasticsearch.transport.TransportRequestOptions.withTimeout()

                });
                return;
            }
            TransportRequestOptions transportRequestOptions = TransportRequestOptions.options();
            if (request.timeout() != null) {
                transportRequestOptions.withTimeout(request.timeout());
            }
            transportRequestOptions.withCompress(transportCompress());
            for (final String nodeId : nodesIds) {
                final DiscoveryNode node = clusterState.nodes().nodes().get(nodeId);
                if (nodeId.equals("_local") || nodeId.equals(clusterState.nodes().localNodeId())) {
View Full Code Here

Examples of org.fest.swing.finder.DialogFinder.withTimeout()

  }
 
  public DialogFixture findDialog() {
    DialogFinder finder = WindowFinder.findDialog(new QueryMatcher<Dialog>(Dialog.class, this));
    if (timeoutInSeconds != null) {
      finder = finder.withTimeout(timeoutInSeconds.intValue(), TimeUnit.SECONDS);
    }
    return finder.using(TestUtils.getRobot());
  }
 
  @Override
View Full Code Here

Examples of org.fest.swing.finder.FrameFinder.withTimeout()

  }
 
  public FrameFixture findFrame() {
    FrameFinder finder = WindowFinder.findFrame(new QueryMatcher<Frame>(Frame.class, this));
    if (timeoutInSeconds != null) {
      finder = finder.withTimeout(timeoutInSeconds.intValue(), TimeUnit.SECONDS);
    }
    return finder.using(TestUtils.getRobot());
  }
 
  public DialogFixture findDialog() {
View Full Code Here

Examples of org.sonatype.nexus.component.source.api.http.ConnectionConfig.withTimeout()

  private ConnectionConfig connectionFromMap(final Map<String, Object> configMap) {
    ConnectionConfig connectionConfig = null;
    if (configMap.containsKey("http.connection.timeout")) {
      connectionConfig = new ConnectionConfig();
      connectionConfig.withTimeout((Integer) configMap.get("http.connection.timeout"));
    }
    if (configMap.containsKey("http.connection.retries")) {
      connectionConfig = connectionConfig == null ? new ConnectionConfig() : connectionConfig;
      connectionConfig.withRetries((Integer) configMap.get("http.connection.retries"));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.