Tabnine Logo
SubscriptionInfo.isNoLocal
Code IndexAdd Tabnine to your IDE (free)

How to use
isNoLocal
method
in
org.apache.activemq.command.SubscriptionInfo

Best Java code snippets using org.apache.activemq.command.SubscriptionInfo.isNoLocal (Showing top 20 results out of 315)

origin: apache/activemq

private boolean hasNoLocalChanged(SubscriptionInfo info1, ConsumerInfo info2) throws IOException {
  //Not all persistence adapters store the noLocal value for a subscription
  PersistenceAdapter adapter = broker.getBrokerService().getPersistenceAdapter();
  if (adapter instanceof NoLocalSubscriptionAware) {
    if (info1.isNoLocal() ^ info2.isNoLocal()) {
      return true;
    }
  }
  return false;
}
origin: apache/activemq

  /**
   * Write the booleans that this object uses to a BooleanStream
   */
  public void looseMarshal(OpenWireFormat wireFormat, Object o, DataOutput dataOut) throws IOException {

    SubscriptionInfo info = (SubscriptionInfo)o;

    super.looseMarshal(wireFormat, o, dataOut);
    looseMarshalString(info.getClientId(), dataOut);
    looseMarshalCachedObject(wireFormat, (DataStructure)info.getDestination(), dataOut);
    looseMarshalString(info.getSelector(), dataOut);
    looseMarshalString(info.getSubcriptionName(), dataOut);
    looseMarshalNestedObject(wireFormat, (DataStructure)info.getSubscribedDestination(), dataOut);
    dataOut.writeBoolean(info.isNoLocal());

  }
}
origin: apache/activemq

  /**
   * Write the booleans that this object uses to a BooleanStream
   */
  public void looseMarshal(OpenWireFormat wireFormat, Object o, DataOutput dataOut) throws IOException {

    SubscriptionInfo info = (SubscriptionInfo)o;

    super.looseMarshal(wireFormat, o, dataOut);
    looseMarshalString(info.getClientId(), dataOut);
    looseMarshalCachedObject(wireFormat, (DataStructure)info.getDestination(), dataOut);
    looseMarshalString(info.getSelector(), dataOut);
    looseMarshalString(info.getSubcriptionName(), dataOut);
    looseMarshalNestedObject(wireFormat, (DataStructure)info.getSubscribedDestination(), dataOut);
    dataOut.writeBoolean(info.isNoLocal());

  }
}
origin: apache/activemq

public ConsumerInfo createInactiveConsumerInfo(SubscriptionInfo info) {
  ConsumerInfo rc = new ConsumerInfo();
  rc.setSelector(info.getSelector());
  rc.setSubscriptionName(info.getSubscriptionName());
  rc.setDestination(info.getSubscribedDestination());
  rc.setConsumerId(createConsumerId());
  rc.setNoLocal(info.isNoLocal());
  return rc;
}
origin: apache/activemq

/**
 * Write the booleans that this object uses to a BooleanStream
 */
public int tightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) throws IOException {
  SubscriptionInfo info = (SubscriptionInfo)o;
  int rc = super.tightMarshal1(wireFormat, o, bs);
  rc += tightMarshalString1(info.getClientId(), bs);
  rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getDestination(), bs);
  rc += tightMarshalString1(info.getSelector(), bs);
  rc += tightMarshalString1(info.getSubcriptionName(), bs);
  rc += tightMarshalNestedObject1(wireFormat, (DataStructure)info.getSubscribedDestination(), bs);
  bs.writeBoolean(info.isNoLocal());
  return rc + 0;
}
origin: apache/activemq

/**
 * Write the booleans that this object uses to a BooleanStream
 */
public int tightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) throws IOException {
  SubscriptionInfo info = (SubscriptionInfo)o;
  int rc = super.tightMarshal1(wireFormat, o, bs);
  rc += tightMarshalString1(info.getClientId(), bs);
  rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getDestination(), bs);
  rc += tightMarshalString1(info.getSelector(), bs);
  rc += tightMarshalString1(info.getSubcriptionName(), bs);
  rc += tightMarshalNestedObject1(wireFormat, (DataStructure)info.getSubscribedDestination(), bs);
  bs.writeBoolean(info.isNoLocal());
  return rc + 0;
}
origin: org.apache.activemq/activemq-broker

private boolean hasNoLocalChanged(SubscriptionInfo info1, ConsumerInfo info2) throws IOException {
  //Not all persistence adapters store the noLocal value for a subscription
  PersistenceAdapter adapter = broker.getBrokerService().getPersistenceAdapter();
  if (adapter instanceof NoLocalSubscriptionAware) {
    if (info1.isNoLocal() ^ info2.isNoLocal()) {
      return true;
    }
  }
  return false;
}
origin: org.apache.activemq/activemq-all

private boolean hasNoLocalChanged(SubscriptionInfo info1, ConsumerInfo info2) throws IOException {
  //Not all persistence adapters store the noLocal value for a subscription
  PersistenceAdapter adapter = broker.getBrokerService().getPersistenceAdapter();
  if (adapter instanceof NoLocalSubscriptionAware) {
    if (info1.isNoLocal() ^ info2.isNoLocal()) {
      return true;
    }
  }
  return false;
}
origin: org.apache.activemq/activemq-osgi

private boolean hasNoLocalChanged(SubscriptionInfo info1, ConsumerInfo info2) throws IOException {
  //Not all persistence adapters store the noLocal value for a subscription
  PersistenceAdapter adapter = broker.getBrokerService().getPersistenceAdapter();
  if (adapter instanceof NoLocalSubscriptionAware) {
    if (info1.isNoLocal() ^ info2.isNoLocal()) {
      return true;
    }
  }
  return false;
}
origin: org.apache.activemq/activemq-osgi

  /**
   * Write the booleans that this object uses to a BooleanStream
   */
  public void looseMarshal(OpenWireFormat wireFormat, Object o, DataOutput dataOut) throws IOException {

    SubscriptionInfo info = (SubscriptionInfo)o;

    super.looseMarshal(wireFormat, o, dataOut);
    looseMarshalString(info.getClientId(), dataOut);
    looseMarshalCachedObject(wireFormat, (DataStructure)info.getDestination(), dataOut);
    looseMarshalString(info.getSelector(), dataOut);
    looseMarshalString(info.getSubcriptionName(), dataOut);
    looseMarshalNestedObject(wireFormat, (DataStructure)info.getSubscribedDestination(), dataOut);
    dataOut.writeBoolean(info.isNoLocal());

  }
}
origin: org.apache.activemq/activemq-all

  /**
   * Write the booleans that this object uses to a BooleanStream
   */
  public void looseMarshal(OpenWireFormat wireFormat, Object o, DataOutput dataOut) throws IOException {

    SubscriptionInfo info = (SubscriptionInfo)o;

    super.looseMarshal(wireFormat, o, dataOut);
    looseMarshalString(info.getClientId(), dataOut);
    looseMarshalCachedObject(wireFormat, (DataStructure)info.getDestination(), dataOut);
    looseMarshalString(info.getSelector(), dataOut);
    looseMarshalString(info.getSubcriptionName(), dataOut);
    looseMarshalNestedObject(wireFormat, (DataStructure)info.getSubscribedDestination(), dataOut);
    dataOut.writeBoolean(info.isNoLocal());

  }
}
origin: org.apache.activemq/activemq-client

  /**
   * Write the booleans that this object uses to a BooleanStream
   */
  public void looseMarshal(OpenWireFormat wireFormat, Object o, DataOutput dataOut) throws IOException {

    SubscriptionInfo info = (SubscriptionInfo)o;

    super.looseMarshal(wireFormat, o, dataOut);
    looseMarshalString(info.getClientId(), dataOut);
    looseMarshalCachedObject(wireFormat, (DataStructure)info.getDestination(), dataOut);
    looseMarshalString(info.getSelector(), dataOut);
    looseMarshalString(info.getSubcriptionName(), dataOut);
    looseMarshalNestedObject(wireFormat, (DataStructure)info.getSubscribedDestination(), dataOut);
    dataOut.writeBoolean(info.isNoLocal());

  }
}
origin: org.apache.activemq/activemq-osgi

  /**
   * Write the booleans that this object uses to a BooleanStream
   */
  public void looseMarshal(OpenWireFormat wireFormat, Object o, DataOutput dataOut) throws IOException {

    SubscriptionInfo info = (SubscriptionInfo)o;

    super.looseMarshal(wireFormat, o, dataOut);
    looseMarshalString(info.getClientId(), dataOut);
    looseMarshalCachedObject(wireFormat, (DataStructure)info.getDestination(), dataOut);
    looseMarshalString(info.getSelector(), dataOut);
    looseMarshalString(info.getSubcriptionName(), dataOut);
    looseMarshalNestedObject(wireFormat, (DataStructure)info.getSubscribedDestination(), dataOut);
    dataOut.writeBoolean(info.isNoLocal());

  }
}
origin: org.apache.activemq/activemq-osgi

public ConsumerInfo createInactiveConsumerInfo(SubscriptionInfo info) {
  ConsumerInfo rc = new ConsumerInfo();
  rc.setSelector(info.getSelector());
  rc.setSubscriptionName(info.getSubscriptionName());
  rc.setDestination(info.getSubscribedDestination());
  rc.setConsumerId(createConsumerId());
  rc.setNoLocal(info.isNoLocal());
  return rc;
}
origin: org.apache.activemq/activemq-broker

public ConsumerInfo createInactiveConsumerInfo(SubscriptionInfo info) {
  ConsumerInfo rc = new ConsumerInfo();
  rc.setSelector(info.getSelector());
  rc.setSubscriptionName(info.getSubscriptionName());
  rc.setDestination(info.getSubscribedDestination());
  rc.setConsumerId(createConsumerId());
  rc.setNoLocal(info.isNoLocal());
  return rc;
}
origin: org.apache.activemq/activemq-all

public ConsumerInfo createInactiveConsumerInfo(SubscriptionInfo info) {
  ConsumerInfo rc = new ConsumerInfo();
  rc.setSelector(info.getSelector());
  rc.setSubscriptionName(info.getSubscriptionName());
  rc.setDestination(info.getSubscribedDestination());
  rc.setConsumerId(createConsumerId());
  rc.setNoLocal(info.isNoLocal());
  return rc;
}
origin: org.apache.activemq/activemq-client

/**
 * Write the booleans that this object uses to a BooleanStream
 */
public int tightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) throws IOException {
  SubscriptionInfo info = (SubscriptionInfo)o;
  int rc = super.tightMarshal1(wireFormat, o, bs);
  rc += tightMarshalString1(info.getClientId(), bs);
  rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getDestination(), bs);
  rc += tightMarshalString1(info.getSelector(), bs);
  rc += tightMarshalString1(info.getSubcriptionName(), bs);
  rc += tightMarshalNestedObject1(wireFormat, (DataStructure)info.getSubscribedDestination(), bs);
  bs.writeBoolean(info.isNoLocal());
  return rc + 0;
}
origin: org.apache.activemq/activemq-client

/**
 * Write the booleans that this object uses to a BooleanStream
 */
public int tightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) throws IOException {
  SubscriptionInfo info = (SubscriptionInfo)o;
  int rc = super.tightMarshal1(wireFormat, o, bs);
  rc += tightMarshalString1(info.getClientId(), bs);
  rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getDestination(), bs);
  rc += tightMarshalString1(info.getSelector(), bs);
  rc += tightMarshalString1(info.getSubcriptionName(), bs);
  rc += tightMarshalNestedObject1(wireFormat, (DataStructure)info.getSubscribedDestination(), bs);
  bs.writeBoolean(info.isNoLocal());
  return rc + 0;
}
origin: org.apache.activemq/activemq-osgi

/**
 * Write the booleans that this object uses to a BooleanStream
 */
public int tightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) throws IOException {
  SubscriptionInfo info = (SubscriptionInfo)o;
  int rc = super.tightMarshal1(wireFormat, o, bs);
  rc += tightMarshalString1(info.getClientId(), bs);
  rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getDestination(), bs);
  rc += tightMarshalString1(info.getSelector(), bs);
  rc += tightMarshalString1(info.getSubcriptionName(), bs);
  rc += tightMarshalNestedObject1(wireFormat, (DataStructure)info.getSubscribedDestination(), bs);
  bs.writeBoolean(info.isNoLocal());
  return rc + 0;
}
origin: org.apache.activemq/activemq-osgi

/**
 * Write the booleans that this object uses to a BooleanStream
 */
public int tightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) throws IOException {
  SubscriptionInfo info = (SubscriptionInfo)o;
  int rc = super.tightMarshal1(wireFormat, o, bs);
  rc += tightMarshalString1(info.getClientId(), bs);
  rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getDestination(), bs);
  rc += tightMarshalString1(info.getSelector(), bs);
  rc += tightMarshalString1(info.getSubcriptionName(), bs);
  rc += tightMarshalNestedObject1(wireFormat, (DataStructure)info.getSubscribedDestination(), bs);
  bs.writeBoolean(info.isNoLocal());
  return rc + 0;
}
org.apache.activemq.commandSubscriptionInfoisNoLocal

Popular methods of SubscriptionInfo

  • getClientId
  • getSubscriptionName
  • <init>
  • getSelector
  • setClientId
  • setDestination
  • getDestination
    This is the a resolved destination that the subscription is receiving messages from. This will never
  • getSubscribedDestination
    The destination the client originally subscribed to.. This may not match the getDestination method i
  • setSelector
  • setSubscribedDestination
  • setSubscriptionName
  • getSubcriptionName
  • setSubscriptionName,
  • getSubcriptionName,
  • setSubcriptionName,
  • setNoLocal

Popular in Java

  • Running tasks concurrently on multiple threads
  • compareTo (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Github Copilot 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