HazelcastClient ringbuffer提供UnsupportedOperationException

时间:2015-08-26 12:56:53

标签: hazelcast

使用

HazelcastInstance client = HazelcastClient.newHazelcastClient();
Ringbuffer<String> mybuffer = client.getRingbuffer("rb");

并且作为客户端连接到多播连接器时出错:

Exception in thread "main" java.lang.UnsupportedOperationException
    at com.hazelcast.client.impl.HazelcastClientProxy.getRingbuffer(HazelcastClientProxy.java:73)

但使用另一个hazelcast实例可以正常工作:

HazelcastInstance client = Hazelcast.newHazelcastInstance();
Ringbuffer<String> mybuffer = client.getRingbuffer("rb");

事情是,最好是作为客户端连接到现有的多播实例,而不是启动另一个实例。这是设计,还是我做错了什么?

感谢

0 个答案:

没有答案