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

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

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

origin: OPCFoundation/UA-Java-Legacy

void close() {
  for ( HttpsEndpointHandle eph : endpoints.values() ) eph.close__();
  socketHandles.remove(getSocketAddress());
  if (listenerEndpoint != null)
    listenerEndpoint.close();
}
@Override
origin: OPCFoundation/UA-Java-Legacy

for ( SocketHandle sh : socketHandleSnapshot() ) {
  ListenerEndpoint le = sh.listenerEndpoint;
  if ( le != null ) le.close();
  sh.listenerEndpoint = null;
origin: wso2/wso2-synapse

try {
  log.info("Closing Endpoint Listener for port "+port);
  dynamicPTTListeningEndpointMapper.get(port).close();
} catch (Exception e) {
  log.error("Cannot close  Endpoint relevant to port " + port, e);
origin: wso2/wso2-synapse

    listenerEndpoint.close();
    log.info("Successfully closed Endpoint Listener for port "+port);
for (ListenerEndpoint listenerEndpoint : endpoints) {
  log.info("Closing Endpoint Listener for port "+port);
  listenerEndpoint.close();
  log.info("Successfully closed Endpoint Listener for port "+port);
origin: wso2/wso2-synapse

      listenerEndpoint.close();
for (InetSocketAddress inetSocketAddress : bindAddresses) {
  if (inetSocketAddress.getHostName().equalsIgnoreCase(((InetSocketAddress) listenerEndpoint.getAddress()).getHostName())) {
    listenerEndpoint.close();
origin: wso2/wso2-synapse

for (ListenerEndpoint listenerEndpoint : ioReactor.getEndpoints()) {
  if (inetSocketAddress.getHostName().equalsIgnoreCase(((InetSocketAddress) listenerEndpoint.getAddress()).getHostName())) {
    listenerEndpoint.close();
    endPointsClosed.add((InetSocketAddress) listenerEndpoint.getAddress());
origin: wso2/wso2-synapse

public void reload(final TransportInDescription transportIn) throws AxisFault {
  if (state != BaseConstants.STARTED) return;
  
  // Close all listener endpoints and stop accepting new connections
  Set<ListenerEndpoint> endpoints = ioReactor.getEndpoints();
  for (ListenerEndpoint endpoint: endpoints) {
    endpoint.close();
  }
  
  // Rebuild connection factory
  HttpHost host = new HttpHost(
    listenerContext.getHostname(), 
    listenerContext.getPort(), 
    scheme.getName());
  ServerConnFactoryBuilder connFactoryBuilder = initConnFactoryBuilder(transportIn, host);
  connFactory = connFactoryBuilder.build(params);
  iodispatch.update(connFactory);
  
  startEndpoints();
  
  log.info(name + " Reloaded");
}
org.apache.http.nio.reactorListenerEndpointclose

Javadoc

Closes this endpoint. The endpoint will stop accepting incoming connection.

Popular methods of ListenerEndpoint

  • getAddress
    Returns the socket address of this endpoint.
  • isClosed
    Determines if this endpoint has been closed and is no longer listens for incoming connections.
  • waitFor
    Waits for completion of initialization process of this endpoint.

Popular in Java

  • Updating database using SQL prepared statement
  • getSystemService (Context)
  • onRequestPermissionsResult (Fragment)
  • getSupportFragmentManager (FragmentActivity)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • JLabel (javax.swing)
  • Option (scala)
  • CodeWhisperer alternatives
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