/* (non-Javadoc)
@see com.ibm.ws.sib.processor.runtime.SIMPRemoteTopicSpaceControllable#clearTopics()

Deletes all topics from the PubSubOutputHandler/Proxy and Matchspace.
425895
public void clearTopics()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.entry(tc, "clearTopics");
    
    //we only clear the topics if the remote me
    //has subscribed to some topics on this me.
    if(_outputHandler!=null)
    {
      if (_outputHandler.getTopics() != null)
      {
        Iterator topics = 
          Arrays.asList(_outputHandler.getTopics()).iterator();

        LinkedList topicSpaces = new LinkedList();
        LinkedList topicSpaceMappings = new LinkedList();
        // Iterate through each of the topics and add the matching ts uuid and ts mapping
        for (int i = 0; i < _outputHandler.getTopics().length; i++)
        {
          topicSpaces.add(_outputHandler.getTopicSpaceUuid().toString());   
          topicSpaceMappings.add(_outputHandler.getTopicSpaceMapping());         
        }
  
        //get the NeighbourProxyListener
        NeighbourProxyListener listener = 
          _messageProcessor.getProxyHandler().getProxyListener();
        try
        {
          ExternalAutoCommitTransaction tran =
            _messageProcessor.getTXManager().createAutoCommitTransaction();
          listener.deleteProxySubscription(topics,
                                           topicSpaces.iterator(),
                                           topicSpaceMappings.iterator(),
                                           _outputHandler.getTargetMEUuid(),
                                           _outputHandler.getBusName(),
                                           tran);
        }
        catch(SIResourceException e)
        {
          FFDCFilter.processException(
            e,
            "com.ibm.ws.sib.processor.runtime.RemoteTopicSpaceControl.clearTopics",
            "1:456:1.34",
            this);
            
          SibTr.error(tc, "INTERNAL_MESSAGING_ERROR_CWSIP0002",
            new Object[] { "com.ibm.ws.sib.processor.runtime.RemoteTopicSpaceControl.clearTopics", 
                           "1:461:1.34", 
                           SIMPUtils.getStackTrace(e) });
          SibTr.exception(tc, e);
        }
      }
      else
      {
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
          SibTr.debug(tc, "No Topics to delete for topicspace with id " + _outputHandler.getDestinationName());
      }
    }//end if PSOH==null

    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.exit(tc, "clearTopics");        
  }
902856
public void removeTopic(String topic)
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "removeTopic", topic);

    if (_subscriptionState == null)
    {
      if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
        SibTr.debug(tc, "removeTopic", "Topic not found");
    }
    else
      _subscriptionState.removeTopic(topic);

    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "removeTopic");
  }
378999
public PubsubFuture<Void> deleteTopic(final String project,
                                        final String topic) {
    return deleteTopic(canonicalTopic(project, topic));
  }
264984
public void removeAll()
    {
        if (m_gridList != null)
            m_gridList.removeAll();
        if (m_gridBuffer != null)
            m_gridBuffer.removeAll();
        if (m_gridNew != null)
            m_gridNew.removeAll();
        m_iEndOfFileIndex = UNKNOWN_POSITION;
        m_iPhysicalFilePosition = UNKNOWN_POSITION;
        m_iLogicalFilePosition = UNKNOWN_POSITION;
    }
151794
@Override
	public void clear() {
		final String sourceMethod = "clear"; //$NON-NLS-1$
		SignalUtil.lock(cloneLock.readLock(), sourceClass, sourceMethod);
		try {
			cacheMap.clear();
			layerBuildMap.clear();
		} finally {
			cloneLock.readLock().unlock();
		}
	}
263731
@VisibleForTesting
    void clear() {
        this.segmentUpdates.clear();
        this.newSegments.clear();
        this.newSegmentNames.clear();
        this.newTruncationPoints.clear();
        this.processedCheckpoint = false;
        resetNewSequenceNumber();
    }
882377
@Override
	public final void deleteTemporaryTopic(String topicName) throws JMSException
    {
        DeleteTemporaryTopicQuery query = new DeleteTemporaryTopicQuery();
        query.setTopicName(topicName);
        transportEndpoint.blockingRequest(query);
    }
422278
public void clear()
    {
        _exactMap=new StringMap();
        _prefixMap=new StringMap();
        _suffixMap=new StringMap();
        _default=null;
        _defaultSingletonList=null;
        super.clear();
    }
964920
public void clear(){
		for(Entry<String, Pool<BehaviorTree>> entry : pools.entries()){
			entry.value.clear();
		}
		pools.clear();
	}
1131303
public void clear() {
	new ByteArrayList(this.state).fillFromToWith(0, this.state.length-1, FREE);
   	new ObjectArrayList(values).fillFromToWith(0, state.length-1, null); // delta

	this.distinct = 0;
	this.freeEntries = table.length; // delta
	trimToSize();
}
933474
@Override
    public void clear() {
        if (emulateIsAbsent)
            lock.writeLock().lock();

        compressedEntries.clear();

        if (emulateIsAbsent)
            lock.writeLock().unlock();
    }
875759
public void clear() {
		if (planePointers != null) {
			for (int i = 0; i < getPlaneCount(); i++) {
				av_free(planePointers[i].position(0));
			}
			planePointers = null;
		}
	}
1298761
public void removeSubscriptions() {
        for (TopicSubscriber subscriber : subscribers.values()) {
            try {
                subscriber.close();
            } catch (Throwable e) {
                log.debug("Error closing subscriber", e);//is level appropriate - previously hidden exception -afranken
            }
        }
        
        subscribers.clear();
    }
272750
public void clearPoints() {
		for (int i=1;i<list.size()-1;i++) {
			list.remove(1);
		}
		
		repaint(0);
		fireUpdate();
	}
799090
public void clear() {
		requests.clear();
		rootCurrentContextsByThreadId.clear();
		if (errors != null) {
			synchronized (errors) {
				errors.clear();
			}
		}
		startDate = new Date();
	}
1349210
@Override
    public void clear() {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
            Tr.event(tc, "Clearing this request: " + this);
        }
        super.clear();
        this.myMethod = MethodValues.UNDEF;
        this.myScheme = null;
        this.myURIBytes = SLASH;
        this.myURIString = null;
        this.myQueryBytes = null;
        this.queryParams = null;
        this.sUrlHost = null;
        this.sHdrHost = null;
        this.iUrlPort = HeaderStorage.NOTSET;
        this.iHdrPort = NOT_TESTED;
    }
684462
@Override
  public void clearHeaders(BindingProvider soapClient) {
    getContextHandlerFromClient(soapClient).clearHeaders();
    soapClient.getRequestContext().put(MessageContext.HTTP_REQUEST_HEADERS,
        new HashMap<String, List<String>>());
  }