/** * Get the resource adapter * * @return The resource adapter */ @Override public ResourceAdapter getResourceAdapter() { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("getResourceAdapter()"); } return ra; }
public void setDiscoveryPort(final Integer discoveryPort) { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("setDiscoveryPort(" + discoveryPort + ")"); } hasBeenUpdated = true; this.discoveryPort = discoveryPort; }
public void setClientFailureCheckPeriod(final Long clientFailureCheckPeriod) { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("setClientFailureCheckPeriod(" + clientFailureCheckPeriod + ")"); } hasBeenUpdated = true; this.clientFailureCheckPeriod = clientFailureCheckPeriod; }
public Integer getScheduledThreadPoolMaxSize() { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("getScheduledThreadPoolMaxSize()"); } return scheduledThreadPoolMaxSize; }
/** * Constructor */ public ActiveMQRAProperties() { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("constructor()"); } }
/** * Set the user name * * @param userName The value */ public void setUserName(final String userName) { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("setUserName(" + userName + ")"); } this.userName = userName; }
/** * Get the JMS minor version * * @return The minor version */ @Override public int getJMSMinorVersion() { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("getJMSMinorVersion()"); } return 0; }
/** * Get the provider version * * @return The version */ @Override public String getProviderVersion() { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("getJMSProviderName()"); } return "2.4"; }
/** * Create a new wrapper * * @param message the message * @param session the session */ public ActiveMQRATextMessage(final TextMessage message, final ActiveMQRASession session) { super(message, session); if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("constructor(" + message + ", " + session + ")"); } }
/** * Create a new wrapper * * @param consumer the topic subscriber * @param session the session */ public ActiveMQRATopicSubscriber(final TopicSubscriber consumer, final ActiveMQRASession session) { super(consumer, session); if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("constructor(" + consumer + ", " + session + ")"); } }
/** * Get the password * * @return The value */ public String getPassword() { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("getPassword()"); } return password; }
/** * Get the client id * * @return The value */ public String getClientID() { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("getClientID()"); } return clientID; }
@Override public ConnectionConsumer createSharedDurableConnectionConsumer(Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("createSharedDurableConnectionConsumer(" + topic + ", " + subscriptionName + ", " + messageSelector + ", " + sessionPool + ", " + maxMessages + ")"); } throw new IllegalStateException(ISE); }
/** * Reset * * @throws JMSException Thrown if an error occurs */ @Override public void reset() throws JMSException { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("reset()"); } ((BytesMessage) message).reset(); }
/** * Get the default session type * * @return The value */ public String getSessionDefaultType() { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("getSessionDefaultType()"); } return mcfProperties.getSessionDefaultType(); }
/** * Set the default session type * * @param type either javax.jms.Topic or javax.jms.Queue */ public void setSessionDefaultType(final String type) { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("setSessionDefaultType(" + type + ")"); } mcfProperties.setSessionDefaultType(type); }
/** * Set the useTryLock. * * @param useTryLock the useTryLock. */ public void setUseTryLock(final Integer useTryLock) { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("setUseTryLock(" + useTryLock + ")"); } mcfProperties.setUseTryLock(useTryLock); }
/** * Clear body * * @throws JMSException Thrown if an error occurs */ @Override public void clearBody() throws JMSException { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("clearBody()"); } message.clearBody(); }
@Override public void setJMSDeliveryTime(long deliveryTime) throws JMSException { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("setJMSDeliveryTime(" + deliveryTime + ")"); } message.setJMSDeliveryTime(deliveryTime); }
@Override public <T> T getBody(Class<T> c) throws JMSException { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("getBody(" + c + ")"); } return message.getBody(c); }