Tabnine Logo
ListenerEndpoint.waitFor
Code IndexAdd Tabnine to your IDE (free)

How to use
waitFor
method
in
org.apache.http.nio.reactor.ListenerEndpoint

Best Java code snippets using org.apache.http.nio.reactor.ListenerEndpoint.waitFor (Showing top 5 results out of 315)

origin: wso2/wso2-synapse

private ListenerEndpoint startEndpoint(InetSocketAddress inetSocketAddress,
                    ListeningIOReactor defaultListeningIOReactor, String endPointName)
    throws Exception {
  ListenerEndpoint endpoint = defaultListeningIOReactor.listen(inetSocketAddress);
  try {
    endpoint.waitFor();
    InetSocketAddress address = (InetSocketAddress) endpoint.getAddress();
    if (!address.isUnresolved()) {
      log.info((endPointName != null ? "Pass-through " + endPointName : " Pass-through Http ") +
           " Listener started on " + address.getHostName() + ":" + address.getPort());
    } else {
      log.info((endPointName != null ? "Pass-through " + endPointName : " Pass-through Http ") +
           " Listener started on " + address);
    }
  } catch (Exception e) {
    throw new Exception("Endpoint does not start for port " + inetSocketAddress.getPort() +
              "May be IO Reactor not started or endpoint binding exception ", e);
  }
  return endpoint;
}
origin: wso2/wso2-synapse

ListenerEndpoint endpoint = endpoints.remove();
try {
  endpoint.waitFor();
  if (log.isInfoEnabled()) {
    InetSocketAddress address = (InetSocketAddress) endpoint.getAddress();
origin: wso2/wso2-synapse

ListenerEndpoint endpoint = endpoints.remove();
try {
  endpoint.waitFor();
  if (log.isInfoEnabled()) {
    InetSocketAddress address = (InetSocketAddress) endpoint.getAddress();
origin: org.apache.commons/commons-vfs2

debug("Serving " + docRoot + " on " + server.getEndpoint().getAddress()
    + (sslContext == null ? "" : " with " + sslContext.getProvider() + " " + sslContext.getProtocol()));
server.getEndpoint().waitFor();
origin: apache/commons-vfs

debug("Serving " + docRoot + " on " + server.getEndpoint().getAddress()
    + (sslContext == null ? "" : " with " + sslContext.getProvider() + " " + sslContext.getProtocol()));
server.getEndpoint().waitFor();
org.apache.http.nio.reactorListenerEndpointwaitFor

Javadoc

Waits for completion of initialization process of this endpoint.

Popular methods of ListenerEndpoint

  • close
    Closes this endpoint. The endpoint will stop accepting incoming connection.
  • getAddress
    Returns the socket address of this endpoint.
  • isClosed
    Determines if this endpoint has been closed and is no longer listens for incoming connections.

Popular in Java

  • Running tasks concurrently on multiple threads
  • addToBackStack (FragmentTransaction)
  • onRequestPermissionsResult (Fragment)
  • getContentResolver (Context)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • BoxLayout (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now