Repository: james-project Updated Branches: refs/heads/master 59c48ef84 -> 7e2a49a0d
MAILBOX-373 EventDeadLetters API Project: http://git-wip-us.apache.org/repos/asf/james-project/repo Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/9eacc577 Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/9eacc577 Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/9eacc577 Branch: refs/heads/master Commit: 9eacc577840c4c67a564ef032909c2ffff3a7b37 Parents: 59c48ef Author: tran tien duc <[email protected]> Authored: Tue Jan 8 17:29:53 2019 +0700 Committer: Benoit Tellier <[email protected]> Committed: Thu Jan 10 16:47:53 2019 +0700 ---------------------------------------------------------------------- .../james/mailbox/events/EventDeadLetters.java | 37 ++++++++++++++++++++ 1 file changed, 37 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/james-project/blob/9eacc577/mailbox/api/src/main/java/org/apache/james/mailbox/events/EventDeadLetters.java ---------------------------------------------------------------------- diff --git a/mailbox/api/src/main/java/org/apache/james/mailbox/events/EventDeadLetters.java b/mailbox/api/src/main/java/org/apache/james/mailbox/events/EventDeadLetters.java new file mode 100644 index 0000000..238533b --- /dev/null +++ b/mailbox/api/src/main/java/org/apache/james/mailbox/events/EventDeadLetters.java @@ -0,0 +1,37 @@ +/**************************************************************** + * Licensed to the Apache Software Foundation (ASF) under one * + * or more contributor license agreements. See the NOTICE file * + * distributed with this work for additional information * + * regarding copyright ownership. The ASF licenses this file * + * to you under the Apache License, Version 2.0 (the * + * "License"); you may not use this file except in compliance * + * with the License. You may obtain a copy of the License at * + * * + * http://www.apache.org/licenses/LICENSE-2.0 * + * * + * Unless required by applicable law or agreed to in writing, * + * software distributed under the License is distributed on an * + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * + * KIND, either express or implied. See the License for the * + * specific language governing permissions and limitations * + * under the License. * + ****************************************************************/ + +package org.apache.james.mailbox.events; + +import org.apache.james.mailbox.Event; + +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +interface EventDeadLetters { + Mono<Void> store(Group registeredGroup, Event failDeliveredEvent); + + Mono<Void> remove(Group registeredGroup, Event.EventId failDeliveredEventId); + + Mono<Event> failedEvent(Group registeredGroup, Event.EventId failDeliveredEventId); + + Flux<Event.EventId> failedEventIds(Group registeredGroup); + + Flux<Group> groupsWithFailedEvents(); +} --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
