Method close.
<p>Called when the local consumers are being implicitly closed</p>
515315
public boolean close(int closedReason, SIBUuid8 qpoint)
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "close", 
          new Object[] { Integer.valueOf(closedReason), 
                         qpoint});

    /*
     * Indicate that the consumer is closed, due to the local destination
     * being deleted/receiveExclusive/unreachable
     */
    this.closedReason = closedReason;
    
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "close", true);
    return true;
  }
577606
public void close() {
        long endNanos = System.nanoTime();
        long durationNanos = endNanos - startNanos;
        connectionPoolCallback.releaseConnection(durationNanos);
    }
1096137
@Override
    public void close() {
        if (this.closed.compareAndSet(false, true)) {
            this.connector.close();
            log.info("{}: Closed.", this.traceObjectId);
        }
    }
352962
public void close() throws SIConnectionLostException, SIResourceException,
            SIErrorException, SIConnectionDroppedException {

        final String methodName = "close";
        if (TRACE.isEntryEnabled()) {
            SibTr.entry(this, TRACE, methodName);
        }

        _delegateSession.close();

        if (TRACE.isEntryEnabled()) {
            SibTr.exit(this, TRACE, methodName);
        }

    }
215514
public void close () {
		Connection[] connections = this.connections;
		for (int i = 0; i < connections.length; i++)
			connections[i].removeListener(invokeListener);

		synchronized (instancesLock) {
			ArrayList<ObjectSpace> temp = new ArrayList(Arrays.asList(instances));
			temp.remove(this);
			instances = temp.toArray(new ObjectSpace[temp.size()]);
		}

		if (TRACE) trace("kryonet", "Closed ObjectSpace.");
	}
1003411
@Override
    public void close() {
        namedParamSqlCache.clear();
        namedParamIndexPropCache.clear();
        clearStatementCache();
        if (useConnection != null) {
            try {
                useConnection.close();
            } catch (SQLException e) {
                LOG.finest("Caught exception closing connection: " + e.getMessage());
            }
        }
    }
663512
private final void closeInternal()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "closeInternal");

    stop(); // stop the stream
    dem.close();
    closed = true;

    // close all the JSRemoteConsumerPoints.
    Enumeration vEnum = consumerKeyTable.elements();
    while (vEnum.hasMoreElements())
    {
      JSRemoteConsumerPoint aock = (JSRemoteConsumerPoint) vEnum.nextElement();
      aock.close();
    }
    consumerKeyTable.clear();

    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "closeInternal");
  }
174199
public void close() {
    try {
      if (is != null) is.close();
    } catch (IOException e) {
      log.error(null, e);
      throw new RuntimeException(e);
    }
    isClosed = true;
  }
1198261
void close() {
        final String methodName = "close";
        if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
            SibTr.entry(this, TRACE, methodName);
        }

        close(false);

        if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
            SibTr.exit(this, TRACE, methodName);
        }
    }
77531
boolean _close() throws SIResourceException
  {
    if (tc.isEntryEnabled()) SibTr.entry(tc, "_close");
    
    boolean closedNow = false;
    
    // Indicate that this connection is closed.
    synchronized (this)
    {
      if (!_closed)
        closedNow = true;
        
      _closed = true;    
    }

    // Ensure that we inform the parent consumer that this
    // bifurcated consumer is closed, so that any messages read
    // by this consumer can be unlocked.
    if (closedNow) {
      try
      {
        _consumerSession.removeBifurcatedConsumer(this);
      }
      catch (SISessionDroppedException e)
      {
  //      RMQSessionDroppedException shouldn't occur so FFDC.
        FFDCFilter.processException(
          e,
          "com.ibm.ws.sib.processor.impl.mqproxy.MQLocalization.getCursor",
          "1:280:1.27",
          this);
  
        SibTr.exception(tc, e);
  
        SIResourceException newE =
          new SIResourceException(
            nls.getFormattedMessage(
              "CONSUMER_CLOSED_ERROR_CWSIP0177",
              new Object[] { _localConsumerPoint.getConsumerManager().getDestination().getName(),
                             _localConsumerPoint.getConsumerManager().getMessageProcessor().getMessagingEngineName()},                
              null));
  
        if (tc.isEntryEnabled())
          SibTr.exit(tc, "getCursor", newE);
  
        throw newE;
      }
    }

    if (tc.isEntryEnabled()) SibTr.exit(tc, "_close", new Boolean(closedNow));
    
    return closedNow;   
  }
788140
@Override
    public void close() {
        if (!this.closed.getAndSet(true)) {
            closeAllIndices(false); // Do not individually clear the cache; we are wiping it anyway when closing it.
            this.cache.close();
            log.info("{}: Closed.", this.traceObjectId);
        }
    }
282332
public void close() {
		synchronized (receivers) {
			Iterator i = receivers.iterator();
			while (i.hasNext()) {
				ReceiverQueue r = (ReceiverQueue) i.next();
				r.onTransmissionClose();
			}
			closed = true;
			receivers.clear();
		}
	}
263110
public void close()
  {
    StreamSource ss = _indirectSource;
    _indirectSource = null;
    
    if (ss != null) {
      ss.freeUseCount();
    }
    else {
      freeUseCount();
    }
  }
765259
@Override
    public void close() throws SourceCloseException {
        for (Backend backend : this.backends) {
            backend.removeBackendListener(this);
        }
        List<BackendCloseException> exceptions = new ArrayList<>();
        for (Backend backend : this.backends) {
            try {
                backend.close();
            } catch (BackendCloseException ex) {
                exceptions.add(ex);
            } catch (Error | RuntimeException ex) {
                exceptions.add(new BackendCloseException(ex));
            }
        }
        if (!exceptions.isEmpty()) {
            throw new SourceCloseException(exceptions.toArray(new BackendCloseException[exceptions.size()]));
        }
        this.closed = true;
    }
20276
@Override
	public void close() {
		if(userSession == null) {
			return;
		}
		
		try {
			final CloseReason closeReason = new CloseReason(CloseCodes.NORMAL_CLOSURE, "Socket closed");
			userSession.close(closeReason);
		} catch (Throwable e) {
			logger.error("Got exception while closing socket", e);
		}
		
		userSession = null;
	}
50062
public synchronized void close()
	{
		if (s != null) {
			super.close();
			try {
				s.close();
			}
			catch (final IOException e) {}
			s = null;
		}
	}
829756
void close() {
        synchronized (pxmlsInfo) {
            for (JPAPxmlInfo pxmlInfo : pxmlsInfo.values()) {
                pxmlInfo.close();
            }
            pxmlsInfo.clear();
        }
    }