org.cometd.java.annotation
Annotation Type Listener


@Target(value=METHOD)
@Retention(value=RUNTIME)
@Documented
public @interface Listener

For server-side services, identifies callback methods that are invoked when a message is processed on server-side.

For client-side services, identifies callback methods that are invoked with the same semantic of ClientSessionChannel.MessageListener.

See Also:
Subscription

Required Element Summary
 String[] value
           
 
Optional Element Summary
 boolean receiveOwnPublishes
           
 

Element Detail

value

public abstract String[] value
Returns:
the list of channels to which the callback method listens to

receiveOwnPublishes

public abstract boolean receiveOwnPublishes
Returns:
whether the callback method should receive messages that has itself published on channels that would trigger the invocation of callback method
Default:
false


Copyright © 2008-2011 Dojo Foundation. All Rights Reserved.