@Override public synchronized ResponseMetadata get(Object obj) { // System.identityHashCode isn't guaranteed to be unique // on all platforms, but should be reasonable enough to use // for a few requests at a time. We can always easily move // to our own unique IDs if needed. return internalCache.get(System.identityHashCode(obj)); }
@Override public synchronized ResponseMetadata get(Object obj) { // System.identityHashCode isn't guaranteed to be unique // on all platforms, but should be reasonable enough to use // for a few requests at a time. We can always easily move // to our own unique IDs if needed. return internalCache.get(System.identityHashCode(obj)); }
/** * Returns the response metadata associated with the specified object, or * null if no metadata is associated with that object. * * @param obj The key by which the desired metadata is stored. * @return The response metadata associated with the given object key, * otherwise null if no metadata is associated with that object. */ public ResponseMetadata get(Object obj) { // System.identityHashCode isn't guaranteed to be unique // on all platforms, but should be reasonable enough to use // for a few requests at a time. We can always easily move // to our own unique IDs if needed. return internalCache.get(System.identityHashCode(obj)); }
/** * Returns the response metadata associated with the specified object, or * null if no metadata is associated with that object. * * @param obj The key by which the desired metadata is stored. * @return The response metadata associated with the given object key, * otherwise null if no metadata is associated with that object. */ public ResponseMetadata get(Object obj) { // System.identityHashCode isn't guaranteed to be unique // on all platforms, but should be reasonable enough to use // for a few requests at a time. We can always easily move // to our own unique IDs if needed. return internalCache.get(System.identityHashCode(obj)); }
/** * Returns the response metadata associated with the specified object, or * null if no metadata is associated with that object. * * @param obj The key by which the desired metadata is stored. * @return The response metadata associated with the given object key, * otherwise null if no metadata is associated with that object. */ public ResponseMetadata get(Object obj) { // System.identityHashCode isn't guaranteed to be unique // on all platforms, but should be reasonable enough to use // for a few requests at a time. We can always easily move // to our own unique IDs if needed. return internalCache.get(System.identityHashCode(obj)); }
@Override public synchronized ResponseMetadata get(Object obj) { // System.identityHashCode isn't guaranteed to be unique // on all platforms, but should be reasonable enough to use // for a few requests at a time. We can always easily move // to our own unique IDs if needed. return internalCache.get(System.identityHashCode(obj)); }