Repository: james-project Updated Branches: refs/heads/master 9d42cc30a -> e85f41a1e
MAILBOX-211 Remove some other classes related to previous implementation of distributed listeners These classes were no more used Project: http://git-wip-us.apache.org/repos/asf/james-project/repo Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/e85f41a1 Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/e85f41a1 Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/e85f41a1 Branch: refs/heads/master Commit: e85f41a1ea9948f7dda924849a5b81631a9e1604 Parents: e4e52e1 Author: Benoit Tellier <[email protected]> Authored: Fri Dec 14 15:20:30 2018 +0700 Committer: Benoit Tellier <[email protected]> Committed: Mon Dec 17 09:25:54 2018 +0700 ---------------------------------------------------------------------- .../mailbox/store/event/EventSerializer.java | 29 ------------ .../store/publisher/MessageConsumer.java | 33 ------------- .../store/publisher/MessageReceiver.java | 26 ----------- .../mailbox/store/publisher/Publisher.java | 35 -------------- .../james/mailbox/store/publisher/Topic.java | 49 -------------------- 5 files changed, 172 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/james-project/blob/e85f41a1/mailbox/store/src/main/java/org/apache/james/mailbox/store/event/EventSerializer.java ---------------------------------------------------------------------- diff --git a/mailbox/store/src/main/java/org/apache/james/mailbox/store/event/EventSerializer.java b/mailbox/store/src/main/java/org/apache/james/mailbox/store/event/EventSerializer.java deleted file mode 100644 index c108edd..0000000 --- a/mailbox/store/src/main/java/org/apache/james/mailbox/store/event/EventSerializer.java +++ /dev/null @@ -1,29 +0,0 @@ -/**************************************************************** - * 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.store.event; - -import org.apache.james.mailbox.MailboxListener; - -public interface EventSerializer { - - byte[] serializeEvent(MailboxListener.MailboxEvent event) throws Exception; - - MailboxListener.MailboxEvent deSerializeEvent(byte[] serializedEvent) throws Exception; -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/james-project/blob/e85f41a1/mailbox/store/src/main/java/org/apache/james/mailbox/store/publisher/MessageConsumer.java ---------------------------------------------------------------------- diff --git a/mailbox/store/src/main/java/org/apache/james/mailbox/store/publisher/MessageConsumer.java b/mailbox/store/src/main/java/org/apache/james/mailbox/store/publisher/MessageConsumer.java deleted file mode 100644 index b03de3f..0000000 --- a/mailbox/store/src/main/java/org/apache/james/mailbox/store/publisher/MessageConsumer.java +++ /dev/null @@ -1,33 +0,0 @@ -/**************************************************************** - * 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.store.publisher; - -/** - * Will consume messages from exterior sources for the given MessageReceiver - */ -public interface MessageConsumer { - - void setMessageReceiver(MessageReceiver messageReceiver); - - void init(Topic topic) throws Exception; - - void destroy() throws Exception; - -} http://git-wip-us.apache.org/repos/asf/james-project/blob/e85f41a1/mailbox/store/src/main/java/org/apache/james/mailbox/store/publisher/MessageReceiver.java ---------------------------------------------------------------------- diff --git a/mailbox/store/src/main/java/org/apache/james/mailbox/store/publisher/MessageReceiver.java b/mailbox/store/src/main/java/org/apache/james/mailbox/store/publisher/MessageReceiver.java deleted file mode 100644 index 3d76524..0000000 --- a/mailbox/store/src/main/java/org/apache/james/mailbox/store/publisher/MessageReceiver.java +++ /dev/null @@ -1,26 +0,0 @@ -/**************************************************************** - * 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.store.publisher; - -public interface MessageReceiver { - - void receiveSerializedEvent(byte[] serializedEvent); - -} http://git-wip-us.apache.org/repos/asf/james-project/blob/e85f41a1/mailbox/store/src/main/java/org/apache/james/mailbox/store/publisher/Publisher.java ---------------------------------------------------------------------- diff --git a/mailbox/store/src/main/java/org/apache/james/mailbox/store/publisher/Publisher.java b/mailbox/store/src/main/java/org/apache/james/mailbox/store/publisher/Publisher.java deleted file mode 100644 index 1ee8bf7..0000000 --- a/mailbox/store/src/main/java/org/apache/james/mailbox/store/publisher/Publisher.java +++ /dev/null @@ -1,35 +0,0 @@ -/**************************************************************** - * 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.store.publisher; - -import java.io.Closeable; - -/** - * The Publisher can be used to send information outside James. - * - * For instance you can send information to a message queue or perform a POST on a restful API - */ -public interface Publisher extends Closeable { - - void publish(Topic topic, byte[] message); - - void init(); - -} http://git-wip-us.apache.org/repos/asf/james-project/blob/e85f41a1/mailbox/store/src/main/java/org/apache/james/mailbox/store/publisher/Topic.java ---------------------------------------------------------------------- diff --git a/mailbox/store/src/main/java/org/apache/james/mailbox/store/publisher/Topic.java b/mailbox/store/src/main/java/org/apache/james/mailbox/store/publisher/Topic.java deleted file mode 100644 index 9f48eb2..0000000 --- a/mailbox/store/src/main/java/org/apache/james/mailbox/store/publisher/Topic.java +++ /dev/null @@ -1,49 +0,0 @@ -/**************************************************************** - * 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.store.publisher; - -import com.google.common.base.Objects; - -public class Topic { - - private final String value; - - public Topic(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public boolean equals(Object o) { - if (o == null || getClass() != o.getClass()) { - return false; - } - Topic topic = (Topic) o; - return Objects.equal(this.value, topic.value); - } - - @Override - public int hashCode() { - return Objects.hashCode(value); - } -} --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
