Example usage for javax.jms Destination hashCode

List of usage examples for javax.jms Destination hashCode

Introduction

In this page you can find the example usage for javax.jms Destination hashCode.

Prototype

@HotSpotIntrinsicCandidate
public native int hashCode();

Source Link

Document

Returns a hash code value for the object.

Usage

From source file:de.marcelsauer.jmsloadtester.handler.DestinationHandlerImpl.java

@Override
public synchronized Destination getDestination(final String name) {
    Destination dest = getCached(name);
    if (dest != null) {
        Logger.debug("returning cached destination: " + dest + " " + dest.hashCode());
    } else {//from ww w.  j a v  a 2 s. c om
        try {
            dest = (Destination) jndiTemplate.lookup(name);
            Logger.debug("returning newly created destination: [" + dest + "] " + dest.hashCode());
            putCached(name, dest);
        } catch (NamingException e) {
            // JndiUtil.printBindings(jndiTemplate.);
            throw new JmsException("could not lookup destination " + name, e);
        }
    }
    return dest;
}