Package com.hazelcast.topic.client

Examples of com.hazelcast.topic.client.PublishRequest


        this.name = objectId;
    }

    public void publish(E message) {
        final Data data = getContext().getSerializationService().toData(message);
        PublishRequest request = new PublishRequest(name, data);
        invoke(request);
    }
View Full Code Here


        return new PortableFactory() {
            @Override
            public Portable create(int classId) {
                switch (classId) {
                    case PUBLISH:
                        return new PublishRequest();
                    case ADD_LISTENER:
                        return new AddMessageListenerRequest();
                    case REMOVE_LISTENER:
                        return new RemoveMessageListenerRequest();
                    case PORTABLE_MESSAGE:
View Full Code Here

    @Override
    public void publish(E message) {
        SerializationService serializationService = getContext().getSerializationService();
        final Data data = serializationService.toData(message);
        PublishRequest request = new PublishRequest(name, data);
        invoke(request);
    }
View Full Code Here

TOP

Related Classes of com.hazelcast.topic.client.PublishRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.