congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ThreadFactory
Code IndexAdd Tabnine to your IDE (free)

How to use
ThreadFactory
in
org.apache.axis2.util.threadpool

Best Java code snippets using org.apache.axis2.util.threadpool.ThreadFactory (Showing top 20 results out of 315)

origin: org.apache.axis2/axis2-transport-tcp

public void startServer() throws IOException {
  if (serverSocket == null) {
    if (endpoint.getHost() != null) {
      InetAddress address = InetAddress.getByName(endpoint.getHost());
      serverSocket = new ServerSocket(endpoint.getPort(), endpoint.getBacklog(), address);
    } else {
      serverSocket = new ServerSocket(endpoint.getPort(), endpoint.getBacklog());
    }
  }
  started = true;
  endpoint.getListener().getConfigurationContext().getThreadPool().execute(this);
  log.info("TCP server started on port : " + endpoint.getPort());
}
origin: org.wso2.mercury/mercury-core

private void sendMessage(MessageContext messageContext, boolean isResume) {
  MessageWorker messageWorker = new MessageWorker(messageContext, isResume);
  // for annonymous sequence messages we have to use the same thread
  if (isAnonymous){
    messageWorker.run();
  } else {
    messageContext.getConfigurationContext().getThreadPool().execute(messageWorker);
  }
}
origin: apache/axis2-java

public void startServer() throws IOException {
  if (serverSocket == null) {
    if (endpoint.getHost() != null) {
      InetAddress address = InetAddress.getByName(endpoint.getHost());
      serverSocket = new ServerSocket(endpoint.getPort(), endpoint.getBacklog(), address);
    } else {
      serverSocket = new ServerSocket(endpoint.getPort(), endpoint.getBacklog());
    }
  }
  started = true;
  endpoint.getListener().getConfigurationContext().getThreadPool().execute(this);
  log.info("TCP server started on port : " + endpoint.getPort());
}
origin: org.apache.axis2/axis2-kernel

/**
 * This is to create a separate thread to process business logic invocation. We create a AsyncMessageReceiverWorker
 * which internally calls the message receiver specified for the operation.
 *
 * We send the ACK through the incoming transport and reply through the address specified in replyTo address.
 * @param messageCtx msgContext the current MessageContext
 */
private void processAsAsync(MessageContext messageCtx) {
  AsyncMessageReceiverWorker worker = new AsyncMessageReceiverWorker(
      messageCtx);
  if (messageCtx.isDoingMTOM() || messageCtx.isDoingSwA()) {
    // If we are doing MTOM or SWA then we need to build with attachment, because we are going to close the incoming connection
    messageCtx.getEnvelope().buildWithAttachments();
  } else {
    // We need to build the envelop since we are going to close the input stream
    messageCtx.getEnvelope().build();
  }
  messageCtx.getConfigurationContext().getThreadPool().execute(
      worker);
}
origin: apache/axis2-java

/**
 * This is to create a separate thread to process business logic invocation. We create a AsyncMessageReceiverWorker
 * which internally calls the message receiver specified for the operation.
 *
 * We send the ACK through the incoming transport and reply through the address specified in replyTo address.
 * @param messageCtx msgContext the current MessageContext
 */
private void processAsAsync(MessageContext messageCtx) {
  AsyncMessageReceiverWorker worker = new AsyncMessageReceiverWorker(
      messageCtx);
  if (messageCtx.isDoingMTOM() || messageCtx.isDoingSwA()) {
    // If we are doing MTOM or SWA then we need to build with attachment, because we are going to close the incoming connection
    messageCtx.getEnvelope().buildWithAttachments();
  } else {
    // We need to build the envelop since we are going to close the input stream
    messageCtx.getEnvelope().build();
  }
  messageCtx.getConfigurationContext().getThreadPool().execute(
      worker);
}
origin: org.wso2.mercury/mercury-core

public synchronized void soapFaultOccured() throws AxisFault {
  terminateRMSSequence();
  if (this.errorCallback != null) {
    ErrorCallbackWorker errorCallbackWorker = new ErrorCallbackWorker(this.errorCallback,
        new SoapProcessingFaultException("Problem with processing the soap message"));
    this.axis2Info.getConfigurationContext().getThreadPool().execute(errorCallbackWorker);
  }
}
origin: org.wso2.mercury/mercury-core

public synchronized void invalidCreateSequenceResponseReceived() throws AxisFault {
  terminateRMSSequence();
  if (this.errorCallback != null){
    ErrorCallbackWorker errorCallbackWorker = new ErrorCallbackWorker(this.errorCallback,
        new RMSequenceCreationException("Invalid Sequence Response Received"));
    this.axis2Info.getConfigurationContext().getThreadPool().execute(errorCallbackWorker);
  }
}
origin: org.wso2.mercury/mercury-core

private void sendMessage(MessageContext messageContext,
             MessageContext responseMessageContext,
             boolean isResume,
             boolean isInvokeAsAnonClient,
             boolean isUseSameThread) {
  MessageWorker messageWorker =
      new MessageWorker(messageContext, responseMessageContext, isResume, isInvokeAsAnonClient);
  if (isInvokeAsAnonClient){
    messageWorker.setRmsSequence(this);
  }
  if (isUseSameThread) {
    messageWorker.run();
  } else {
    // we need to invoke this as annonymous client
    messageContext.getConfigurationContext().getThreadPool().execute(messageWorker);
  }
}
origin: org.wso2.mercury/mercury-core

public synchronized void rmsSequenceExpired() throws AxisFault {
  terminateRMSSequence();
  if (this.errorCallback != null){
    ErrorCallbackWorker errorCallbackWorker = new ErrorCallbackWorker(this.errorCallback,
        new RMSExpiresException("RMS Sequence has expires before properly terminating the sequence"));
    this.axis2Info.getConfigurationContext().getThreadPool().execute(errorCallbackWorker);
  }
}
origin: org.apache.sandesha2/sandesha2-core

    threadPool.execute(work);
} catch(Exception e) {
  worker.getLock().removeWork(workId);
origin: org.apache.sandesha2/sandesha2-core

configurationContext.getThreadPool().execute(nextRunnable);
origin: org.apache.axis2/axis2-kernel

  msgContext.getConfigurationContext().getThreadPool().execute(
      new TransportNonBlockingInvocationWorker(msgContext, sender));
} else {
origin: apache/axis2-java

  msgContext.getConfigurationContext().getThreadPool().execute(
      new TransportNonBlockingInvocationWorker(msgContext, sender));
} else {
origin: org.apache.axis2/axis2-kernel

  completed = true;
} else {
  sc.getConfigurationContext().getThreadPool().execute(
      new NonBlockingInvocationWorker(mc, axisCallback));
origin: org.apache.sandesha2/sandesha2-core

  threadPool.execute(worker);
} catch (Exception e) {
  getWorkerLock().removeWork(workId);
origin: apache/axis2-java

  completed = true;
} else {
  sc.getConfigurationContext().getThreadPool().execute(
      new NonBlockingInvocationWorker(mc, axisCallback));
origin: holodeck-b2b/Holodeck-B2B

  completed = true;
} else {
sc.getConfigurationContext().getThreadPool().execute(
    new OutOptInAxisOperationClient.NonBlockingInvocationWorker(mc, axisCallback));
origin: org.wso2.mercury/mercury-core

  configurationContext.getThreadPool().execute(rmdSequenceWorker);
configurationContext.getThreadPool().execute(invokerWorker);
origin: org.wso2.mercury/mercury-core

      rmsSequenceWorker.setSequenceWorkerSleepTime(mercuryParameterHandler.getRMSSequenceWorkerSleepTime());
      this.configurationContext.getThreadPool().execute(rmsSequenceWorker);
configurationContext.getThreadPool().execute(invokerWorker);
  configurationContext.getThreadPool().execute(rmdSequenceWorker);
origin: org.apache.sandesha2/sandesha2-core

ctx.getThreadPool().execute(work);
org.apache.axis2.util.threadpoolThreadFactory

Most used methods

  • execute

Popular in Java

  • Making http requests using okhttp
  • getContentResolver (Context)
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (Timer)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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