Errai 3.0.1-SNAPSHOT

org.jboss.errai.bus.server.io
Class RemoteServiceCallback

java.lang.Object
  extended by org.jboss.errai.bus.server.io.RemoteServiceCallback
All Implemented Interfaces:
MessageCallback

public class RemoteServiceCallback
extends Object
implements MessageCallback

RemoteServiceCallback implements callback functionality for a remote service. It invokes the callback functions for all endpoints specified


Constructor Summary
RemoteServiceCallback(Map<String,MessageCallback> endpoints)
          Initializes the RemoteServiceCallback with a set of endpoints and their callback functions
 
Method Summary
 void callback(Message message)
          Invokes all callback functions that can be associated to the message
 Set<String> getEndpoints()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteServiceCallback

public RemoteServiceCallback(Map<String,MessageCallback> endpoints)
Initializes the RemoteServiceCallback with a set of endpoints and their callback functions

Parameters:
endpoints - - Map of endpoints to their callback function
Method Detail

callback

public void callback(Message message)
Invokes all callback functions that can be associated to the message

Specified by:
callback in interface MessageCallback
Parameters:
message - - the message in question

getEndpoints

public Set<String> getEndpoints()

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.