Errai 3.0.1-SNAPSHOT

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

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

public class EndpointCallback
extends Object
implements MessageCallback

EndpointCallback is a callback function for a message being sent. It invokes the endpoint function specified


Constructor Summary
EndpointCallback(Object genericSvc, Method method)
          Initializes the service and endpoint method
 
Method Summary
 void callback(Message message)
          Invokes the endpoint function based on the details of the message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EndpointCallback

public EndpointCallback(Object genericSvc,
                        Method method)
Initializes the service and endpoint method

Parameters:
genericSvc - - the service that delivers the message
method - - the endpoint function
Method Detail

callback

public void callback(Message message)
Invokes the endpoint function based on the details of the message

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

Errai 3.0.1-SNAPSHOT

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