public static class BayeuxServer.Extension.Adapter extends Object implements BayeuxServer.Extension
BayeuxServer.Extension
.BayeuxServer.Extension.Adapter
Constructor and Description |
---|
Adapter() |
Modifier and Type | Method and Description |
---|---|
boolean |
rcv(ServerSession from,
ServerMessage.Mutable message)
Callback method invoked every time a normal message is incoming.
|
boolean |
rcvMeta(ServerSession from,
ServerMessage.Mutable message)
Callback method invoked every time a meta message is incoming.
|
boolean |
send(ServerSession from,
ServerSession to,
ServerMessage.Mutable message)
Callback method invoked every time a normal message is outgoing.
|
boolean |
sendMeta(ServerSession to,
ServerMessage.Mutable message)
Callback method invoked every time a meta message is outgoing.
|
public boolean rcv(ServerSession from, ServerMessage.Mutable message)
BayeuxServer.Extension
Callback method invoked every time a normal message is incoming.
rcv
in interface BayeuxServer.Extension
from
- the session that sent the messagemessage
- the incoming messagepublic boolean rcvMeta(ServerSession from, ServerMessage.Mutable message)
BayeuxServer.Extension
Callback method invoked every time a meta message is incoming.
rcvMeta
in interface BayeuxServer.Extension
from
- the session that sent the messagemessage
- the incoming meta messagepublic boolean send(ServerSession from, ServerSession to, ServerMessage.Mutable message)
BayeuxServer.Extension
Callback method invoked every time a normal message is outgoing.
send
in interface BayeuxServer.Extension
from
- the session that sent the message or nullto
- the session the message is sent to, or null for a publish.message
- the outgoing messagepublic boolean sendMeta(ServerSession to, ServerMessage.Mutable message)
BayeuxServer.Extension
Callback method invoked every time a meta message is outgoing.
sendMeta
in interface BayeuxServer.Extension
to
- the session the message is sent to, or null for a publish.message
- the outgoing meta messageCopyright © 2008–2017 The CometD Project. All rights reserved.