question: mark all messages read by this slot as slot_returned . also clear messages in slot concode_field_sep boolean isAnOverlappingSlot concode_elem_sep long messageCount concode_elem_sep List<SlotState> slotStates concode_elem_sep String destinationOfMessagesInSlot concode_elem_sep String storageQueueName concode_elem_sep AtomicInteger pendingMessageCount concode_elem_sep Log log concode_elem_sep long startMessageId concode_elem_sep ConcurrentHashMap<Long,DeliverableAndesMetadata> messagesOfSlot concode_elem_sep long endMessageId concode_elem_sep boolean isSlotActive concode_field_sep long getMessageCount concode_elem_sep long getEndMessageId concode_elem_sep boolean checkIfMessageIsAlreadyAdded concode_elem_sep String encodeSlotStates concode_elem_sep String getId concode_elem_sep int compareTo concode_elem_sep void setMessageCount concode_elem_sep void setEndMessageId concode_elem_sep void addMessageToSlotIfAbsent concode_elem_sep boolean isAnOverlappingSlot concode_elem_sep void decodeAndSetSlotStates concode_elem_sep long getStartMessageId concode_elem_sep int hashCode concode_elem_sep void setStartMessageId concode_elem_sep SlotState getCurrentState concode_elem_sep void incrementPendingMessageCount concode_elem_sep void setStorageQueueName concode_elem_sep void deleteAllMessagesInSlot concode_elem_sep boolean addState concode_elem_sep void setAnOverlappingSlot concode_elem_sep void removeMessageFromSlot concode_elem_sep void setDestinationOfMessagesInSlot concode_elem_sep String getStorageQueueName concode_elem_sep boolean equals concode_elem_sep void decrementPendingMessageCount concode_elem_sep void setSlotInactive concode_elem_sep String toString concode_elem_sep List<DeliverableAndesMetadata> getAllMessagesOfSlot concode_elem_sep String getDestinationOfMessagesInSlot concode_elem_sep boolean isSlotActive
target: void function ( ) { for ( DeliverableAndesMetadata loc0 : messagesOfSlot . values ( ) ) { loc0 . markAsStale ( ) ; loc0 . markAsSlotReturned ( ) ; } messagesOfSlot . clear ( ) ; }