Package org.cometd.server.ext
Class AcknowledgedMessagesExtension
java.lang.Object
org.cometd.bayeux.server.BayeuxServer.Extension.Adapter
org.cometd.server.ext.AcknowledgedMessagesExtension
- All Implemented Interfaces:
BayeuxServer.Extension
public class AcknowledgedMessagesExtension extends BayeuxServer.Extension.Adapter
Installing this extension in a BayeuxServer
provides support for
server-to-client message acknowledgement if a client also supports it.
The main role of this extension is to install the
AcknowledgedMessagesSessionExtension
on the ServerSession
instances created during successful handshakes.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cometd.bayeux.server.BayeuxServer.Extension
BayeuxServer.Extension.Adapter
-
Constructor Summary
Constructors Constructor Description AcknowledgedMessagesExtension()
-
Method Summary
Modifier and Type Method Description boolean
rcvMeta(ServerSession remote, ServerMessage.Mutable message)
Callback method invoked every time a meta message is incoming.Methods inherited from class org.cometd.bayeux.server.BayeuxServer.Extension.Adapter
rcv, send, sendMeta
-
Constructor Details
-
AcknowledgedMessagesExtension
public AcknowledgedMessagesExtension()
-
-
Method Details
-
rcvMeta
Description copied from interface:BayeuxServer.Extension
Callback method invoked every time a meta message is incoming.
- Specified by:
rcvMeta
in interfaceBayeuxServer.Extension
- Overrides:
rcvMeta
in classBayeuxServer.Extension.Adapter
- Parameters:
remote
- the session that sent the messagemessage
- the incoming meta message- Returns:
- true if message processing should continue, false if it should stop
-