public class AcknowledgedMessagesExtension extends Object implements 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.
Modifier and Type | Class and Description |
---|---|
static interface |
AcknowledgedMessagesExtension.Listener
A listener for acknowledgement events.
|
Constructor and Description |
---|
AcknowledgedMessagesExtension() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(AcknowledgedMessagesExtension.Listener listener) |
protected AcknowledgedMessagesSessionExtension |
newSessionExtension(ServerSession session) |
boolean |
rcvMeta(ServerSession remote,
ServerMessage.Mutable message)
Blocking version of
BayeuxServer.Extension.incoming(ServerSession, ServerMessage.Mutable, Promise)
for meta messages. |
void |
removeListener(AcknowledgedMessagesExtension.Listener listener) |
public void addListener(AcknowledgedMessagesExtension.Listener listener)
public void removeListener(AcknowledgedMessagesExtension.Listener listener)
public boolean rcvMeta(ServerSession remote, ServerMessage.Mutable message)
BayeuxServer.Extension
Blocking version of BayeuxServer.Extension.incoming(ServerSession, ServerMessage.Mutable, Promise)
for meta messages.
rcvMeta
in interface BayeuxServer.Extension
remote
- the session that sent the messagemessage
- the incoming messageprotected AcknowledgedMessagesSessionExtension newSessionExtension(ServerSession session)
Copyright © 2008–2024 The CometD Project. All rights reserved.