Package tigase.server.xmppclient
Interface XMPPIOProcessor
- All Known Implementing Classes:
RegistrationThrottlingProcessor,StreamErrorCounterIOProcessor,StreamManagementIOProcessor
public interface XMPPIOProcessor
- Author:
- andrzej
-
Method Summary
Modifier and TypeMethodDescriptiongetId()Returns identifier of processorvoidgetStatistics(StatisticsList list) Returns statistics generated by this processorvoidpacketsSent(XMPPIOService service) Method is called when all waiting data was written to socket.voidprocessCommand(XMPPIOService service, Packet packet) Process command execution which may be sent from other component and should be processed by processorbooleanprocessIncoming(XMPPIOService service, Packet packet) Process packets read from socket as they are sent to SessionManager.booleanprocessOutgoing(XMPPIOService service, Packet packet) Process outgoing packets as they are added to XMPPIOService outgoing packets queue.booleanserviceStopped(XMPPIOService service, boolean streamClosed) Method called when XMPPIOService is closed.voidstreamError(XMPPIOService service, StreamError streamError) Method called when XMPP stream error is about to be sentElement[]supStreamFeatures(XMPPIOService service) Returns array of features added by this processor
-
Method Details
-
getId
String getId()Returns identifier of processor -
getStatistics
Returns statistics generated by this processor -
supStreamFeatures
Returns array of features added by this processor -
processIncoming
Process packets read from socket as they are sent to SessionManager.- Returns:
- true if packet should not be forwarded
-
processOutgoing
Process outgoing packets as they are added to XMPPIOService outgoing packets queue.- Returns:
- true if packet should be removed
-
packetsSent
Method is called when all waiting data was written to socket.- Throws:
IOException
-
processCommand
Process command execution which may be sent from other component and should be processed by processor -
serviceStopped
Method called when XMPPIOService is closed.- Returns:
- true if connecton manager should not be notified about stopping of this service
-
streamError
Method called when XMPP stream error is about to be sent
-