Tabnine Logo
MethodCall.methodName
Code IndexAdd Tabnine to your IDE (free)

How to use
methodName
method
in
org.jgroups.blocks.MethodCall

Best Java code snippets using org.jgroups.blocks.MethodCall.methodName (Showing top 4 results out of 315)

origin: wildfly/wildfly

/**
 * Invokes a method in all members and expects responses from members contained in dests (or all members if dests is null).
 * @param dests A list of addresses. If null, we'll wait for responses from all cluster members
 * @param method_call The method (plus args) to be invoked
 * @param options A collection of call options, e.g. sync versus async, timeout etc
 * @return CompletableFuture A future from which the results can be fetched, or null if the RPC is asynchronous
 * @throws Exception If the sending of the message threw an exception. Note that <em>no</em> exception will be
 *                   thrown if any of the target members threw an exception; such an exception will be in the Rsp
 *                   element for the particular member in the RspList
 */
public <T> CompletableFuture<RspList<T>> callRemoteMethodsWithFuture(Collection<Address> dests, MethodCall method_call,
                                   RequestOptions options) throws Exception {
  if(dests != null && dests.isEmpty()) { // don't send if dest list is empty
    log.trace("destination list of %s() is empty: no need to send message", method_call.methodName());
    return CompletableFuture.completedFuture(empty_rsplist);
  }
  Buffer buf=methodCallToBuffer(method_call, marshaller);
  CompletableFuture<RspList<T>> retval=super.castMessageWithFuture(dests, buf, options);
  if(log.isTraceEnabled())
    log.trace("dests=%s, method_call=%s, options=%s", dests, method_call, options);
  return retval;
}
origin: wildfly/wildfly

/**
 * Invokes a method in all members and expects responses from members contained in dests (or all members if dests is null).
 * @param dests A list of addresses. If null, we'll wait for responses from all cluster members
 * @param method_call The method (plus args) to be invoked
 * @param opts A collection of call options, e.g. sync versus async, timeout etc
 * @return RspList A list of return values and flags (suspected, not received) per member, or null if the RPC is
 *                 asynchronous
 * @throws Exception If the sending of the message threw an exception. Note that <em>no</em> exception will be
 *                   thrown if any of the target members threw an exception, but this exception will be in the Rsp
 *                   object for the particular member in the RspList
 * @since 2.9
 */
public <T> RspList<T> callRemoteMethods(Collection<Address> dests, MethodCall method_call,
                    RequestOptions opts) throws Exception {
  if(dests != null && dests.isEmpty()) { // don't send if dest list is empty
    log.trace("destination list of %s() is empty: no need to send message", method_call.methodName());
    return empty_rsplist;
  }
  Buffer buf=methodCallToBuffer(method_call, marshaller);
  RspList<T> retval=super.castMessage(dests, buf, opts);
  if(log.isTraceEnabled())
    log.trace("dests=%s, method_call=%s, options=%s, responses: %s", dests, method_call, opts, retval);
  return retval;
}
origin: org.jboss.eap/wildfly-client-all

/**
 * Invokes a method in all members and expects responses from members contained in dests (or all members if dests is null).
 * @param dests A list of addresses. If null, we'll wait for responses from all cluster members
 * @param method_call The method (plus args) to be invoked
 * @param options A collection of call options, e.g. sync versus async, timeout etc
 * @return CompletableFuture A future from which the results can be fetched, or null if the RPC is asynchronous
 * @throws Exception If the sending of the message threw an exception. Note that <em>no</em> exception will be
 *                   thrown if any of the target members threw an exception; such an exception will be in the Rsp
 *                   element for the particular member in the RspList
 */
public <T> CompletableFuture<RspList<T>> callRemoteMethodsWithFuture(Collection<Address> dests, MethodCall method_call,
                                   RequestOptions options) throws Exception {
  if(dests != null && dests.isEmpty()) { // don't send if dest list is empty
    log.trace("destination list of %s() is empty: no need to send message", method_call.methodName());
    return CompletableFuture.completedFuture(empty_rsplist);
  }
  Buffer buf=methodCallToBuffer(method_call, marshaller);
  CompletableFuture<RspList<T>> retval=super.castMessageWithFuture(dests, buf, options);
  if(log.isTraceEnabled())
    log.trace("dests=%s, method_call=%s, options=%s", dests, method_call, options);
  return retval;
}
origin: org.jboss.eap/wildfly-client-all

/**
 * Invokes a method in all members and expects responses from members contained in dests (or all members if dests is null).
 * @param dests A list of addresses. If null, we'll wait for responses from all cluster members
 * @param method_call The method (plus args) to be invoked
 * @param opts A collection of call options, e.g. sync versus async, timeout etc
 * @return RspList A list of return values and flags (suspected, not received) per member, or null if the RPC is
 *                 asynchronous
 * @throws Exception If the sending of the message threw an exception. Note that <em>no</em> exception will be
 *                   thrown if any of the target members threw an exception, but this exception will be in the Rsp
 *                   object for the particular member in the RspList
 * @since 2.9
 */
public <T> RspList<T> callRemoteMethods(Collection<Address> dests, MethodCall method_call,
                    RequestOptions opts) throws Exception {
  if(dests != null && dests.isEmpty()) { // don't send if dest list is empty
    log.trace("destination list of %s() is empty: no need to send message", method_call.methodName());
    return empty_rsplist;
  }
  Buffer buf=methodCallToBuffer(method_call, marshaller);
  RspList<T> retval=super.castMessage(dests, buf, opts);
  if(log.isTraceEnabled())
    log.trace("dests=%s, method_call=%s, options=%s, responses: %s", dests, method_call, opts, retval);
  return retval;
}
org.jgroups.blocksMethodCallmethodName

Popular methods of MethodCall

  • <init>
  • invoke
  • findMethod
    Called by the ProbeHandler impl. All args are strings. Needs to find a method where all parameter ty
  • getAllMethods
    The method walks up the class hierarchy and returns all methods of this class and those inherited fr
  • getMethod
    Returns the first method that matches the specified name and parameter types. The overriding methods
  • getName
    returns the name of the method to be invoked using this method call object
  • init
  • args
  • isPrimitiveType
  • method
  • methodId
  • mode
  • methodId,
  • mode,
  • readArgs,
  • readFrom,
  • readMethod,
  • readTypes,
  • setName,
  • writeArgs,
  • writeMethod

Popular in Java

  • Making http requests using okhttp
  • getContentResolver (Context)
  • findViewById (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Best plugins for Eclipse
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