@Override public void oneway(Object command) throws IOException { next.oneway(command); }
protected void sendWireFormat(WireFormatInfo info) throws IOException { next.oneway(info); }
@Override public void run() { try { remoteBroker.oneway(ack); } catch (IOException e) { LOG.warn("Failed to send advisory ack " + ack, e); } } });
@Override public void oneway(Object command) throws IOException { writeLock.lock(); try { next.oneway(command); } finally { writeLock.unlock(); } }
public void oneway(Object command) throws IOException { // Changed this method to use a LogWriter object to actually // print the messages to the log, and only in case of logging // being active, instead of logging the message directly. if( logging && log.isDebugEnabled() ) { logWriter.logOneWay(log, command); } next.oneway(command); }
protected void addSubscription(DemandSubscription sub) throws IOException { if (sub != null) { localBroker.oneway(sub.getLocalInfo()); } }
@Override public void onCommand(Object command) { try { // skipping WireFormat infos if (command.getClass() == WireFormatInfo.class) { return; } localTransport.oneway(command); } catch (IOException error) { onFailure(error); } }
private void doAsyncSendPacket(Command command) throws JMSException { try { this.transport.oneway(command); } catch (IOException e) { throw JMSExceptionSupport.create(e); } }
@Override public void run() { try { localBroker.oneway(destInfo); } catch (IOException e) { LOG.warn("failed to deliver remove command for destination: {}", destInfo.getDestination(), e); } } });
@Override public void oneway(Object command) throws IOException { getNext().oneway(command); }
/** * @param transport * @param connectionState * @throws IOException */ protected void restoreTempDestinations(Transport transport, ConnectionState connectionState) throws IOException { // Restore the connection's temp destinations. for (Iterator iter2 = connectionState.getTempDestinations().iterator(); iter2.hasNext();) { DestinationInfo info = (DestinationInfo)iter2.next(); transport.oneway(info); if (LOG.isDebugEnabled()) { LOG.debug("tempDest: " + info.getDestination()); } } }
protected void restoreTransport(FanoutTransportHandler th) throws Exception, IOException { th.transport.start(); stateTracker.setRestoreConsumers(th.transport == primary); stateTracker.restore(th.transport); for (Iterator<RequestCounter> iter2 = requestMap.values().iterator(); iter2.hasNext();) { RequestCounter rc = iter2.next(); th.transport.oneway(rc.command); } }
protected void dispatch(Command command) throws IOException { try { setMarkedCandidate(true); transport.oneway(command); } finally { setMarkedCandidate(false); } }
private void doOnewaySend(Object command) throws IOException { if (failed.get()) { throw new InactivityIOException("Cannot send, channel has already failed: " + next.getRemoteAddress()); } if (command.getClass() == WireFormatInfo.class) { synchronized (this) { processOutboundWireFormatInfo((WireFormatInfo) command); } } next.oneway(command); }
/** * @param transport * @param sessionState * @throws IOException */ protected void restoreProducers(Transport transport, SessionState sessionState) throws IOException { // Restore the session's producers for (Iterator iter3 = sessionState.getProducerStates().iterator(); iter3.hasNext();) { ProducerState producerState = (ProducerState)iter3.next(); if (LOG.isDebugEnabled()) { LOG.debug("producer: " + producerState.getInfo().getProducerId()); } transport.oneway(producerState.getInfo()); } }
public void oneway(Object command) throws IOException { next.oneway((Command) remoteWireFormat.unmarshal(localWireFormat.marshal(command))); }
public void oneway(Object o) throws IOException { Command command = (Command)o; command.setCommandId(sequenceGenerator.getNextSequenceId()); command.setResponseRequired(false); next.oneway(command); }
@Override public void run() { sub.waitForCompletion(); try { localBroker.oneway(sub.getLocalInfo().createRemoveCommand()); } catch (IOException e) { LOG.warn("failed to deliver remove command for local subscription, for remote {}", sub.getRemoteInfo().getConsumerId(), e); } } });
@Override public void onCompletion(FutureResponse resp) { try { Response reply = resp.getResult(); reply.setCorrelationId(correlationId); remoteBroker.oneway(reply); //increment counter when messages are received in duplex mode networkBridgeStatistics.getReceivedCount().increment(); } catch (IOException error) { LOG.error("Exception: {} on duplex forward of: {}", error, message); serviceRemoteException(error); } } });
public void onCompletion(FutureResponse future) { try { Response response = future.getResult(); if (response.isException()) { ExceptionResponse er = (ExceptionResponse)response; serviceLocalException(er.getException()); } else { dequeueCounter.incrementAndGet(); localBroker.oneway(new MessageAck(md, MessageAck.STANDARD_ACK_TYPE, 1)); } } catch (IOException e) { serviceLocalException(e); } } };