Tabnine Logo
Broker.removeSession
Code IndexAdd Tabnine to your IDE (free)

How to use
removeSession
method
in
org.apache.activemq.broker.Broker

Best Java code snippets using org.apache.activemq.broker.Broker.removeSession (Showing top 20 results out of 315)

origin: apache/activemq

@Override
public void removeSession(ConnectionContext context, SessionInfo info) throws Exception {
  next.removeSession(context, info);
  Broker brokers[] = getListeners();
  for (int i = 0; i < brokers.length; i++) {
    brokers[i].removeSession(context, info);
  }
}
origin: apache/activemq

@Override
public void removeSession(ConnectionContext context, SessionInfo info) throws Exception {
  getNext().removeSession(context, info);
}
origin: apache/activemq

@Override
public Response processAddSession(SessionInfo info) throws Exception {
  ConnectionId connectionId = info.getSessionId().getParentId();
  TransportConnectionState cs = lookupConnectionState(connectionId);
  // Avoid replaying dup commands
  if (cs != null && !cs.getSessionIds().contains(info.getSessionId())) {
    broker.addSession(cs.getContext(), info);
    try {
      cs.addSession(info);
    } catch (IllegalStateException e) {
      LOG.warn("Failed to add session: {}", info.getSessionId(), e);
      broker.removeSession(cs.getContext(), info);
    }
  }
  return null;
}
origin: apache/activemq

broker.removeSession(cs.getContext(), session.getInfo());
return null;
origin: pierre/meteo

public void removeSession(ConnectionContext context, SessionInfo info) throws Exception {
  next.removeSession(context, info);
}
origin: org.apache.activemq/activemq-broker

@Override
public void removeSession(ConnectionContext context, SessionInfo info) throws Exception {
  next.removeSession(context, info);
  Broker brokers[] = getListeners();
  for (int i = 0; i < brokers.length; i++) {
    brokers[i].removeSession(context, info);
  }
}
origin: org.apache.activemq/activemq-osgi

@Override
public void removeSession(ConnectionContext context, SessionInfo info) throws Exception {
  next.removeSession(context, info);
  Broker brokers[] = getListeners();
  for (int i = 0; i < brokers.length; i++) {
    brokers[i].removeSession(context, info);
  }
}
origin: org.apache.activemq/activemq-all

@Override
public void removeSession(ConnectionContext context, SessionInfo info) throws Exception {
  next.removeSession(context, info);
  Broker brokers[] = getListeners();
  for (int i = 0; i < brokers.length; i++) {
    brokers[i].removeSession(context, info);
  }
}
origin: pierre/meteo

@Override
public void removeSession(ConnectionContext context, SessionInfo info) throws Exception {
  next.removeSession(context, info);
  Broker brokers[] = getListeners();
  for (int i = 0; i < brokers.length; i++) {
    brokers[i].removeSession(context, info);
  }
}
origin: org.apache.activemq/activemq-broker

@Override
public void removeSession(ConnectionContext context, SessionInfo info) throws Exception {
  getNext().removeSession(context, info);
}
origin: org.apache.activemq/activemq-all

@Override
public void removeSession(ConnectionContext context, SessionInfo info) throws Exception {
  getNext().removeSession(context, info);
}
origin: org.apache.activemq/activemq-osgi

@Override
public void removeSession(ConnectionContext context, SessionInfo info) throws Exception {
  getNext().removeSession(context, info);
}
origin: pierre/meteo

public void removeSession(ConnectionContext context, SessionInfo info) throws Exception {
  getNext().removeSession(context, info);
}
origin: pierre/meteo

public Response processAddSession(SessionInfo info) throws Exception {
  ConnectionId connectionId = info.getSessionId().getParentId();
  TransportConnectionState cs = lookupConnectionState(connectionId);
  // Avoid replaying dup commands
  if (cs != null && !cs.getSessionIds().contains(info.getSessionId())) {
    broker.addSession(cs.getContext(), info);
    try {
      cs.addSession(info);
    } catch (IllegalStateException e) {
      e.printStackTrace();
      broker.removeSession(cs.getContext(), info);
    }
  }
  return null;
}
origin: org.apache.activemq/activemq-broker

@Override
public Response processAddSession(SessionInfo info) throws Exception {
  ConnectionId connectionId = info.getSessionId().getParentId();
  TransportConnectionState cs = lookupConnectionState(connectionId);
  // Avoid replaying dup commands
  if (cs != null && !cs.getSessionIds().contains(info.getSessionId())) {
    broker.addSession(cs.getContext(), info);
    try {
      cs.addSession(info);
    } catch (IllegalStateException e) {
      LOG.warn("Failed to add session: {}", info.getSessionId(), e);
      broker.removeSession(cs.getContext(), info);
    }
  }
  return null;
}
origin: org.apache.activemq/activemq-all

@Override
public Response processAddSession(SessionInfo info) throws Exception {
  ConnectionId connectionId = info.getSessionId().getParentId();
  TransportConnectionState cs = lookupConnectionState(connectionId);
  // Avoid replaying dup commands
  if (cs != null && !cs.getSessionIds().contains(info.getSessionId())) {
    broker.addSession(cs.getContext(), info);
    try {
      cs.addSession(info);
    } catch (IllegalStateException e) {
      LOG.warn("Failed to add session: {}", info.getSessionId(), e);
      broker.removeSession(cs.getContext(), info);
    }
  }
  return null;
}
origin: org.apache.activemq/activemq-osgi

@Override
public Response processAddSession(SessionInfo info) throws Exception {
  ConnectionId connectionId = info.getSessionId().getParentId();
  TransportConnectionState cs = lookupConnectionState(connectionId);
  // Avoid replaying dup commands
  if (cs != null && !cs.getSessionIds().contains(info.getSessionId())) {
    broker.addSession(cs.getContext(), info);
    try {
      cs.addSession(info);
    } catch (IllegalStateException e) {
      LOG.warn("Failed to add session: {}", info.getSessionId(), e);
      broker.removeSession(cs.getContext(), info);
    }
  }
  return null;
}
origin: org.apache.activemq/activemq-broker

broker.removeSession(cs.getContext(), session.getInfo());
return null;
origin: org.apache.activemq/activemq-all

broker.removeSession(cs.getContext(), session.getInfo());
return null;
origin: org.apache.activemq/activemq-osgi

broker.removeSession(cs.getContext(), session.getInfo());
return null;
org.apache.activemq.brokerBrokerremoveSession

Javadoc

Removes a session.

Popular methods of Broker

  • getAdaptor
    Get a Broker from the Broker Stack that is a particular class
  • getDestinationMap
    return a reference destination map of a region based on the destination type
  • removeDestination
  • commitTransaction
    Commits a transaction.
  • forgetTransaction
    Forgets a transaction.
  • getBrokerService
  • getClients
  • getDestinations
  • getPreparedTransactions
    Gets a list of all the prepared xa transactions.
  • getVmConnectorURI
  • removeConsumer
  • acknowledge
  • removeConsumer,
  • acknowledge,
  • addBroker,
  • addConnection,
  • addConsumer,
  • addDestination,
  • addDestinationInfo,
  • addProducer,
  • addSession,
  • beginTransaction

Popular in Java

  • Reactive rest calls using spring rest template
  • getContentResolver (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • scheduleAtFixedRate (Timer)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Runner (org.openjdk.jmh.runner)
  • Top plugins for Android Studio
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