java.lang.Object
org.cometd.server.ext.AcknowledgedMessagesExtension
- All Implemented Interfaces:
BayeuxServer.Extension
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 ClassesModifier and TypeClassDescriptionstatic interface
A listener for acknowledgement events. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected AcknowledgedMessagesSessionExtension
newSessionExtension
(ServerSession session) boolean
rcvMeta
(ServerSession remote, ServerMessage.Mutable message) Blocking version ofBayeuxServer.Extension.incoming(ServerSession, ServerMessage.Mutable, Promise)
for meta messages.void
-
Constructor Details
-
AcknowledgedMessagesExtension
public AcknowledgedMessagesExtension()
-
-
Method Details
-
addListener
-
removeListener
-
rcvMeta
Description copied from interface:BayeuxServer.Extension
Blocking version of
BayeuxServer.Extension.incoming(ServerSession, ServerMessage.Mutable, Promise)
for meta messages.- Specified by:
rcvMeta
in interfaceBayeuxServer.Extension
- Parameters:
remote
- the session that sent the messagemessage
- the incoming message- Returns:
- whether message processing should continue
-
newSessionExtension
-