@Override public long getLastProducerSequenceId(ProducerId id) throws IOException { long maxId = -1; for (PersistenceAdapter persistenceAdapter : adapters) { maxId = Math.max(maxId, persistenceAdapter.getLastProducerSequenceId(id)); } return maxId; }
private long getStoredSequenceIdForMessage(MessageId messageId) { try { return brokerService.getPersistenceAdapter().getLastProducerSequenceId(messageId.getProducerId()); } catch (IOException ignored) { LOG.debug("Failed to determine last producer sequence id for: {}", messageId, ignored); } return -1; }
protected long getStoredSequenceIdForMessage(MessageId messageId) { try { return brokerService.getPersistenceAdapter().getLastProducerSequenceId(messageId.getProducerId()); } catch (IOException ignored) { LOG.debug("Failed to determine last producer sequence id for: {}", messageId, ignored); } return -1; }
private ProducerBrokerExchange getProducerBrokerExchange(ProducerId id) throws IOException { ProducerBrokerExchange result = producerExchanges.get(id); if (result == null) { synchronized (producerExchanges) { result = new ProducerBrokerExchange(); TransportConnectionState state = lookupConnectionState(id); context = state.getContext(); result.setConnectionContext(context); if (context.isReconnect() || (context.isNetworkConnection() && connector.isAuditNetworkProducers())) { result.setLastStoredSequenceId(brokerService.getPersistenceAdapter().getLastProducerSequenceId(id)); } SessionState ss = state.getSessionState(id.getParentId()); if (ss != null) { result.setProducerState(ss.getProducerState(id)); ProducerState producerState = ss.getProducerState(id); if (producerState != null && producerState.getInfo() != null) { ProducerInfo info = producerState.getInfo(); result.setMutable(info.getDestination() == null || info.getDestination().isComposite()); } } producerExchanges.put(id, result); } } else { context = result.getConnectionContext(); } return result; }
@Override public long getLastProducerSequenceId(ProducerId id) throws IOException { long maxId = -1; for (PersistenceAdapter persistenceAdapter : adapters) { maxId = Math.max(maxId, persistenceAdapter.getLastProducerSequenceId(id)); } return maxId; }
@Override public long getLastProducerSequenceId(ProducerId id) throws IOException { long maxId = -1; for (PersistenceAdapter persistenceAdapter : adapters) { maxId = Math.max(maxId, persistenceAdapter.getLastProducerSequenceId(id)); } return maxId; }
@Override public long getLastProducerSequenceId(ProducerId id) throws IOException { long maxId = -1; for (PersistenceAdapter persistenceAdapter : adapters) { maxId = Math.max(maxId, persistenceAdapter.getLastProducerSequenceId(id)); } return maxId; }
protected long getStoredSequenceIdForMessage(MessageId messageId) { try { return brokerService.getPersistenceAdapter().getLastProducerSequenceId(messageId.getProducerId()); } catch (IOException ignored) { LOG.debug("Failed to determine last producer sequence id for: {}", messageId, ignored); } return -1; }
protected long getStoredSequenceIdForMessage(MessageId messageId) { try { return brokerService.getPersistenceAdapter().getLastProducerSequenceId(messageId.getProducerId()); } catch (IOException ignored) { LOG.debug("Failed to determine last producer sequence id for: {}", messageId, ignored); } return -1; }
private long getStoredSequenceIdForMessage(MessageId messageId) { try { return brokerService.getPersistenceAdapter().getLastProducerSequenceId(messageId.getProducerId()); } catch (IOException ignored) { LOG.debug("Failed to determine last producer sequence id for: {}", messageId, ignored); } return -1; }
private long getStoredSequenceIdForMessage(MessageId messageId) { try { return brokerService.getPersistenceAdapter().getLastProducerSequenceId(messageId.getProducerId()); } catch (IOException ignored) { LOG.debug("Failed to determine last producer sequence id for: {}", messageId, ignored); } return -1; }
protected long getStoredSequenceIdForMessage(MessageId messageId) { try { return brokerService.getPersistenceAdapter().getLastProducerSequenceId(messageId.getProducerId()); } catch (IOException ignored) { LOG.debug("Failed to determine last producer sequence id for: {}", messageId, ignored); } return -1; }
private long getStoredSequenceIdForMessage(MessageId messageId) { try { return brokerService.getPersistenceAdapter().getLastProducerSequenceId(messageId.getProducerId()); } catch (IOException ignored) { LOG.debug("Failed to determine last producer sequence id for: {}", messageId, ignored); } return -1; }
private ProducerBrokerExchange getProducerBrokerExchange(ProducerId id) throws IOException { ProducerBrokerExchange result = producerExchanges.get(id); if (result == null) { synchronized (producerExchanges) { result = new ProducerBrokerExchange(); TransportConnectionState state = lookupConnectionState(id); context = state.getContext(); if (context.isReconnect()) { result.setLastStoredSequenceId(broker.getBrokerService().getPersistenceAdapter().getLastProducerSequenceId(id)); } result.setConnectionContext(context); SessionState ss = state.getSessionState(id.getParentId()); if (ss != null) { result.setProducerState(ss.getProducerState(id)); ProducerState producerState = ss.getProducerState(id); if (producerState != null && producerState.getInfo() != null) { ProducerInfo info = producerState.getInfo(); result.setMutable(info.getDestination() == null || info.getDestination().isComposite()); } } producerExchanges.put(id, result); } } else { context = result.getConnectionContext(); } return result; }
private ProducerBrokerExchange getProducerBrokerExchange(ProducerId id) throws IOException { ProducerBrokerExchange result = producerExchanges.get(id); if (result == null) { synchronized (producerExchanges) { result = new ProducerBrokerExchange(); TransportConnectionState state = lookupConnectionState(id); context = state.getContext(); result.setConnectionContext(context); if (context.isReconnect() || (context.isNetworkConnection() && connector.isAuditNetworkProducers())) { result.setLastStoredSequenceId(brokerService.getPersistenceAdapter().getLastProducerSequenceId(id)); } SessionState ss = state.getSessionState(id.getParentId()); if (ss != null) { result.setProducerState(ss.getProducerState(id)); ProducerState producerState = ss.getProducerState(id); if (producerState != null && producerState.getInfo() != null) { ProducerInfo info = producerState.getInfo(); result.setMutable(info.getDestination() == null || info.getDestination().isComposite()); } } producerExchanges.put(id, result); } } else { context = result.getConnectionContext(); } return result; }
private ProducerBrokerExchange getProducerBrokerExchange(ProducerId id) throws IOException { ProducerBrokerExchange result = producerExchanges.get(id); if (result == null) { synchronized (producerExchanges) { result = new ProducerBrokerExchange(); TransportConnectionState state = lookupConnectionState(id); context = state.getContext(); result.setConnectionContext(context); if (context.isReconnect() || (context.isNetworkConnection() && connector.isAuditNetworkProducers())) { result.setLastStoredSequenceId(brokerService.getPersistenceAdapter().getLastProducerSequenceId(id)); } SessionState ss = state.getSessionState(id.getParentId()); if (ss != null) { result.setProducerState(ss.getProducerState(id)); ProducerState producerState = ss.getProducerState(id); if (producerState != null && producerState.getInfo() != null) { ProducerInfo info = producerState.getInfo(); result.setMutable(info.getDestination() == null || info.getDestination().isComposite()); } } producerExchanges.put(id, result); } } else { context = result.getConnectionContext(); } return result; }
private ProducerBrokerExchange getProducerBrokerExchange(ProducerId id) throws IOException { ProducerBrokerExchange result = producerExchanges.get(id); if (result == null) { synchronized (producerExchanges) { result = new ProducerBrokerExchange(); TransportConnectionState state = lookupConnectionState(id); context = state.getContext(); result.setConnectionContext(context); if (context.isReconnect() || (context.isNetworkConnection() && connector.isAuditNetworkProducers())) { result.setLastStoredSequenceId(brokerService.getPersistenceAdapter().getLastProducerSequenceId(id)); } SessionState ss = state.getSessionState(id.getParentId()); if (ss != null) { result.setProducerState(ss.getProducerState(id)); ProducerState producerState = ss.getProducerState(id); if (producerState != null && producerState.getInfo() != null) { ProducerInfo info = producerState.getInfo(); result.setMutable(info.getDestination() == null || info.getDestination().isComposite()); } } producerExchanges.put(id, result); } } else { context = result.getConnectionContext(); } return result; }