Package rocks.xmpp.core.stream
Interface StreamHandler
-
- All Known Implementing Classes:
AbstractConnection,BoshConnection,ExternalComponent,JakartaWebSocketConnection,NettyChannelConnection,SocketConnection,StreamFeaturesManager,TcpConnection,WebSocketConnection,XmppClient,XmppSession
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface StreamHandler
A functional interface for handling inbound stream elements which are read from a connection.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhandleElement(Object streamElement)Handles an inbound stream element.
-
-
-
Method Detail
-
handleElement
boolean handleElement(Object streamElement) throws XmppException
Handles an inbound stream element.- Parameters:
streamElement- The stream element.- Returns:
- True, if the stream must be restarted.
- Throws:
XmppException- If an exception occurred, usually during stream negotiation.
-
-