public class ServiceMethodCallback extends Object
Service
.Constructor and Description |
---|
ServiceMethodCallback(Object delegate,
Method service)
Create a callback to the given service method.
|
Modifier and Type | Method and Description |
---|---|
void |
callback(Message message)
Called by the Message Bus every time it processes a message with the
subject this callback is registered for.
|
protected void |
maybeUnwrapAndThrowError(Throwable throwable) |
protected void |
verifyMethodSignature(Method method) |
public void callback(Message message)
MessageCallback
message
- The message on the bus. Avoid making changes to this object,
because it will continue to be reused by the framework and the
same Message instance will be passed to other callbacks.protected void maybeUnwrapAndThrowError(Throwable throwable) throws RuntimeException
RuntimeException
protected void verifyMethodSignature(Method method)
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.