Repository: incubator-tamaya-sandbox Updated Branches: refs/heads/master a829665e0 -> 9f71f2d80
TAMAYA-195: Added hazelcast support. Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/commit/a61f874c Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/tree/a61f874c Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/diff/a61f874c Branch: refs/heads/master Commit: a61f874c4618a011891d35db3ba72f5fe6034592 Parents: a829665 Author: anatole <[email protected]> Authored: Sun Nov 13 22:51:27 2016 +0100 Committer: anatole <[email protected]> Committed: Sun Nov 13 22:51:27 2016 +0100 ---------------------------------------------------------------------- .../java/org/apache/tamaya/hazelcast/Test.java | 41 ++++++++++++++++++++ 1 file changed, 41 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/a61f874c/hazelcast/src/test/java/org/apache/tamaya/hazelcast/Test.java ---------------------------------------------------------------------- diff --git a/hazelcast/src/test/java/org/apache/tamaya/hazelcast/Test.java b/hazelcast/src/test/java/org/apache/tamaya/hazelcast/Test.java new file mode 100644 index 0000000..c83df66 --- /dev/null +++ b/hazelcast/src/test/java/org/apache/tamaya/hazelcast/Test.java @@ -0,0 +1,41 @@ +/* + * 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.tamaya.hazelcast; + +import com.hazelcast.core.Hazelcast; +import com.hazelcast.core.HazelcastInstance; +import com.hazelcast.core.ITopic; + +import java.util.Date; + +/** + * Created by atsticks on 03.11.16. + */ +public class Test { + + public static void main(String[] args) { + HazelcastInstance hz = Hazelcast.newHazelcastInstance(); + ITopic<String> topic = hz.getTopic("foo"); +// topic.addMessageListener(System.out::println); + while(true){ + topic.publish("Hi from Anatole at " + new Date()); + } + } +}
